Advertisement
Guest User

Untitled

a guest
Mar 19th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. else if(strcmp(tmp,"civil",true) == 0)
  2. {
  3. if(PlayerInfo[playerid][pRank] < 2)
  4. {msg_Client(playerid, COLOR_POLICE, "{007AFF}« Police »{FFFFFF} Vous devez être Rang 3 ou supérieur pour cette action.");return 1;}
  5.  
  6. tmp = strtok(cmdtext, idx);
  7. if(!strlen(tmp))
  8. {msg_Client(playerid, COLOR_WHITE, "{FF6A00}« Usage »{FFDFC9} /p(olice) civil <skin>");return 1;}
  9.  
  10. if (PlayerToPoint(6, playerid,police[PlayerInfo[playerid][pMember]-1][cmds][3],police[PlayerInfo[playerid][pMember]-1][cmds][4],police[PlayerInfo[playerid][pMember]-1][cmds][5]))
  11. {
  12. new Skin = strval(tmp);
  13. if(Skin > 299 || Skin <0)
  14. {msg_Client(playerid,COLOR_POLICE,"{007AFF}« Police »{FFFFFF} Skin compris entre 1 et 299.");return 1;}
  15.  
  16. SafeResetPlayerWeapons(playerid);
  17. SafeSetPlayerHealth(playerid,100);
  18. SafeSetPlayerArmour(playerid,100);
  19. SetPlayerSkin(playerid,Skin);
  20. SafeGivePlayerWeapon(playerid, 24, 500);
  21. SafeGivePlayerWeapon(playerid, 43, 40);
  22. SafeGivePlayerWeapon(playerid, 41, 1500);
  23.  
  24. msg_Client(playerid,COLOR_POLICE,"{007AFF}« Police »{FFFFFF} Vous êtes en civil.");
  25. return 1;
  26. }
  27. else
  28. {msg_Client(playerid, COLOR_POLICE, "{007AFF}« Police »{FFFFFF} Tu n'es pas dans le vestiaire.");return 1;}
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement