23.02.2018, 14:14
How can i get the next player ascendingly who have some features on , for example: specing rcon admins ascendingly
Код:
CMD:specadmins(playerid, params[]) { foreach(new i : Character) { if(IsPlayerAdmin(i)) TogglePlayerSpectating(playerid, 1); PlayerSpectatePlayer(playerid, i, SPECTATE_MODE_NORMAL); } return 1; } public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if(newkeys & SPRINT_KEY) { //Spectating the next admin } return 1; }