Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. CMD:find(playerid, params[]) {
  2. 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");
  3. new id,giveplayer[30],string[100];
  4. if(PlayerInfo[playerid][pJob] != 1 && PlayerInfo[playerid][pMember] != 1 && !IsACop(playerid)) return SendClientMessage(playerid, COLOR_YELLOW, "You are not an detective.");
  5. if(sscanf(params, "u",id)) return SendClientMessage(playerid, COLOR_GREY, "USAGE: {FFFFFF}/find <playerid/name>");
  6. if(!IsPlayerConnected(id) || id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_GREY, "Acel player nu este conectat.");
  7. if(Spectate[id] != 255) return SCM(playerid, COLOR_GREY, "Acel player este ocupat!");
  8. if(id == playerid) return SCM(playerid, COLOR_GREY, "Nu poti folosi aceasta comanda asupra ta!");
  9. UsedFind[playerid] = 1;
  10. GetPlayerName(id, giveplayer, sizeof(giveplayer));
  11. new Float:X,Float:Y,Float:Z;
  12. GetPlayerPos(id, X,Y,Z);
  13. SetPlayerCheckpoint(playerid, X,Y,Z, 3.5);
  14. targetfind[playerid] = id;
  15. CP[playerid] = 53;
  16. format(string, sizeof(string), "* Punctul rosu a fost setat pe %s (%d).",giveplayer,id);
  17. SendClientMessage(playerid,COLOR_YELLOW,string);
  18. return 1;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement