Jump to content

Question

Posted (edited)

As avea si eu nevoie de o comanda /find pentru ca mi-am facut una da nu sta dupa player si nu stiu cum sa o fac

YCMD:find(playerid, params[], help)
{
        if(PlayerData[playerid][Job] != 7)
        {
                new id;
                new Float:X;
                new Float:Y;
                new Float:Z;
                new string[128];
                new name[MAX_PLAYER_NAME];
                if(sscanf(params,"u", ID)) return SendClientMessage(playerid,-1,"{FF0000}Folosire: {15FF00}/find [ID Jucator]");
                GetPlayerPos(playerid, X, Y, Z);
                SetPlayerCheckpoint(playerid, X, Y, Z, 6.0);
                GetPlayerName(id, name, sizeof(name));
                format(string, sizeof(string), "Ai pus checkpoint pe jucatorul: {FF0000}%s {15FF00}(%d) {FFCC33}!", name, ID);
                SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
        }
        else
        {
                SendClientMessage(playerid, -1, "{FFCC33}Nu esti detectiv!");
        }
        return 1;
}

 

Edited by Mr.Michael

1 answer to this question

Recommended Posts

  • 0
Posted

Salut,

In primul rand, foloseste modelul . In al doilea rand , nu se cer scripturi , doar ajutor la rezolvarea unor script-uri facute de tine .

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.