21.02.2012, 15:51
level 10 Can Use This Feature ,How To Make it for only rcon admin ? ?
Код:
case 4:{ if (PlayerInfo[playerid][Level] >= 10 && PlayerInfo[playerid][LoggedIn] == 1) { aresetcar(playerid); SendClientMessageToAll(COLOR_ORANGE, "Vehicle Has Been Reset."); } else{ SendClientMessage(playerid, COLOR_BRIGHTRED, "You are not a level 10 admin and cannot use this feature!"); } HideMenuForPlayer(Current, playerid); TogglePlayerControllable(playerid, true); } case 5:{ if (PlayerInfo[playerid][Level] >= 10 && PlayerInfo[playerid][LoggedIn] == 1) { aresetallcar(); fremove(V_FILE_SAVE); LoadVehicles(); SendClientMessageToAll(COLOR_ORANGE, "All Vehicles Have Been Reset."); } else{ SendClientMessage(playerid, COLOR_BRIGHTRED, "You are not a level 10 admin and cannot use this feature!"); } HideMenuForPlayer(Current, playerid); TogglePlayerControllable(playerid, true); }