Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- dcmd(getall, 6, cmdtext);
- return 0;
- }
- dcmd_getall(playerid, params[])
- {
- for(new i=0; i<MAX_PLAYERS; i++)
- {
- if(PInfo[playerid][Level] < 4) return SendClientMessage(playerid, 0xAA3333AA,"You need to be level 4 to use this command!");
- if(!IsPlayerAdmin(playerid)) return 0; // Checking if the player is logged in rcon
- GetPlayerPos(playerid, X, Y, Z);
- SetPlayerPos(i, X+2, Y+2, Z);
- return 1;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement