Guest User

Untitled

a guest
Aug 30th, 2014
283
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. CMD:rob(playerid, params[])
  2. {
  3. new giveplayerid;
  4.  
  5. if(sscanf(params, "u", giveplayerid))
  6. return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /rob [playerid/partofname]");
  7.  
  8. if(IsPlayerConnected(giveplayerid))
  9. {
  10. if(PlayerInfo[playerid][pLevel] < 7)
  11. {
  12. SendClientMessage(playerid, COLOR_GREY, "You need to be atleast level 7 to use this command.");
  13. return 1;
  14. }
  15. if(IsPlayerConnected(giveplayerid))
  16. {
  17. if(giveplayerid != INVALID_PLAYER_ID)
  18. {
  19. if (ProxDetectorS(2.0, playerid, giveplayerid))
  20. {
  21. //put your shit here
  22. else
  23. {
  24. SendClientMessage(playerid, COLOR_GREY, "Player is not near you.");
  25. }
  26. }
  27. }
  28.  
  29. }
  30. return 1;
  31. }
Advertisement
Add Comment
Please, Sign In to add comment