libdo

Untitled

Sep 16th, 2017
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if(strcmp(cmd,"/gangshake",true)==0)
  2. {
  3. if(IsPlayerConnected(playerid))
  4. {
  5. tmp = strtok(cmdtext, idx);
  6. if(!strlen(tmp))
  7. {
  8. SendClientMessage(playerid, GREY, "/gangshake [playerid] [1 to 8]");
  9. return 1;
  10. }
  11. new playa = ReturnUser(tmp);
  12. tmp = strtok(cmdtext, idx);
  13. if(!strlen(tmp))
  14. {
  15. SendClientMessage(playerid, GREY, "/gangshake [playerid] [1 to 8]");
  16. return 1;
  17. }
  18. new kind = strval(tmp);
  19. if(kind < 1 || kind > 8)
  20. {
  21. SendClientMessage(playerid, GREY, "availble numbers from 1 to 8");
  22. return 1;
  23. }
Add Comment
Please, Sign In to add comment