Advertisement
Peppery

getall

Feb 16th, 2012
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. public OnPlayerCommandText(playerid, cmdtext[])
  2.  
  3. {
  4. dcmd(getall, 6, cmdtext);
  5. return 0;
  6. }
  7.  
  8. dcmd_getall(playerid, params[])
  9. {
  10. for(new i=0; i<MAX_PLAYERS; i++)
  11. {
  12. if(PInfo[playerid][Level] < 4) return SendClientMessage(playerid, 0xAA3333AA,"You need to be level 4 to use this command!");
  13. if(!IsPlayerAdmin(playerid)) return 0; // Checking if the player is logged in rcon
  14. GetPlayerPos(playerid, X, Y, Z);
  15. SetPlayerPos(i, X+2, Y+2, Z);
  16. return 1;
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement