Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- dcmd(kickall, 7, cmdtext);
- return 0;
- }
- dcmd_kickall(playerid, params[])
- {
- for(new i=0; i<MAX_PLAYERS; i++)
- {
- if(PInfo[playerid][Level] < 5) return SendClientMessage(playerid, 0xAA3333AA,"You need to be level 4 to use this command!");
- if(!IsPlayerAdmin(playerid)) return 0;
- Kick(i);
- return 1;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement