Little Help
#1

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);
			}
Reply


Messages In This Thread
Little Help - by Zxdsl - 21.02.2012, 15:51
Re: Little Help - by emokidx - 21.02.2012, 15:52
Re: Little Help - by Zxdsl - 21.02.2012, 15:57
Re: Little Help - by Slash_ - 21.02.2012, 15:57

Forum Jump:


Users browsing this thread: 2 Guest(s)