Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:find(playerid, params[]) {
- if(CP[playerid] != 0 || targetfind[playerid] != -1) return ShowPlayerDialog(playerid, DIALOG_JOBULETES, DIALOG_STYLE_MSGBOX, "Checkpoint", "Ai deja un checkpoint activ.\nDoresti sa-l anulezi? Daca da, apasa pe 'Ok'.", "Ok", "Exit");
- new id,giveplayer[30],string[100];
- if(PlayerInfo[playerid][pJob] != 1 && PlayerInfo[playerid][pMember] != 1 && !IsACop(playerid)) return SendClientMessage(playerid, COLOR_YELLOW, "You are not an detective.");
- if(sscanf(params, "u",id)) return SendClientMessage(playerid, COLOR_GREY, "USAGE: {FFFFFF}/find <playerid/name>");
- if(!IsPlayerConnected(id) || id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_GREY, "Acel player nu este conectat.");
- if(Spectate[id] != 255) return SCM(playerid, COLOR_GREY, "Acel player este ocupat!");
- if(id == playerid) return SCM(playerid, COLOR_GREY, "Nu poti folosi aceasta comanda asupra ta!");
- UsedFind[playerid] = 1;
- GetPlayerName(id, giveplayer, sizeof(giveplayer));
- new Float:X,Float:Y,Float:Z;
- GetPlayerPos(id, X,Y,Z);
- SetPlayerCheckpoint(playerid, X,Y,Z, 3.5);
- targetfind[playerid] = id;
- CP[playerid] = 53;
- format(string, sizeof(string), "* Punctul rosu a fost setat pe %s (%d).",giveplayer,id);
- SendClientMessage(playerid,COLOR_YELLOW,string);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement