Make VIP command only?
#1

I wanna make /laseron a VIP only command. This is an example of a VIP feature, how do i make vip only commands tho? thanks...

Код:
if(PlayerInfo[playerid][pVIP] > 0)
	    {
	    	new Float:armour, level;
			GetPlayerArmour(playerid, armour);
	        level = PlayerInfo[playerid][pVIP];
	        switch(level)
	        {

	            case 1:
	            {
	                SetPlayerArmour(playerid, 50.0);
	                SendClientMessage(playerid, C_GREY, "** VIP armour added!");
				}
				case 2:
				{
				    SetPlayerArmour(playerid, 99);
				    SendClientMessage(playerid, C_GREY, "** VIP armour added!");
				}
				case 3:
				{
				    SetPlayerArmour(playerid, 99);
				    SendClientMessage(playerid, C_GREY, "** VIP armour added!");
				}
			}
		}

		SetRank3DText(playerid);
	}
	else
 	{
		TogglePlayerControllable(playerid, 0);
	    SetPlayerClass(playerid);
	}
	return 1;
}
Reply


Messages In This Thread
Make VIP command only? - by Eminem 2ka9 - 08.12.2012, 22:41
Re: Make VIP command only? - by Ironboy - 08.12.2012, 23:26
Re: Make VIP command only? - by Eminem 2ka9 - 09.12.2012, 00:13
Re: Make VIP command only? - by Randy More - 09.12.2012, 01:17
Re: Make VIP command only? - by Baumann - 10.12.2012, 12:37
Re: Make VIP command only? - by tsonn1 - 10.12.2012, 12:45
Re: Make VIP command only? - by niels44 - 10.12.2012, 12:52

Forum Jump:


Users browsing this thread: 1 Guest(s)