Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2015
273
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. if (strcmp(cmd, "/check", true) == 0)
  2. {
  3. if(IsPlayerConnected(playerid))
  4. {
  5. if (PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 1)
  6. {
  7. tmp = strtok(cmdtext, idx);
  8. if(!strlen(tmp))
  9. {
  10. SendClientMessage(playerid, COLOR_GRAD1, "{FFFFFF}[{F81414}wZone RPG{FFFFFF}]: /check [playerid/PartOfName]");
  11. return 1;
  12. }
  13. //giveplayerid = strval(tmp);
  14. giveplayerid = ReturnUser(tmp);
  15. if(IsPlayerConnected(giveplayerid))
  16. {
  17. if(giveplayerid != INVALID_PLAYER_ID)
  18. {
  19. ShowStats(playerid,giveplayerid);
  20. }
  21. }
  22. else
  23. {
  24. SendClientMessage(playerid, COLOR_GRAD1, " No Such Player");
  25. }
  26. }
  27. else
  28. {
  29. SendClientMessage(playerid, COLOR_GRAD1, " You are not an admin");
  30. }
  31. }
  32. return 1;
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement