08.12.2012, 22:41
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;
}


, so you can put the things like i did in a special part of your text.