22.07.2012, 16:10
The enum information:
The command:
pawn Код:
enum pInfo
{
Logged,
Password,
AdminLevel,
VIP,
Cash,
Score,
Ip[20],
IsBanned
};
new PlayerInfo[MAX_PLAYERS][pInfo];
pawn Код:
COMMAND:vheal(playerid, params[])
{
if(pInfo[playerid][VIP]) //change this
{
SetPlayerHealth(playerid, 100);
SendClientMessage(playerid, white, "You have been healed!");
}
else
{
SendClientMessage(playerid,COLOR_RED, "You are not VIP to use this command!");
}
return 1;
}