25.03.2013, 04:04
Well, I am having problem with this... Copied from LuxAdmin, just changing it for VIPs. 

pawn Код:
CMD:vipgod(playerid,params[])
{
if(IsPlayerVipMember(playerid))
{
if(AccInfo[playerid][God] == 0)
{
AccInfo[playerid][God] = 1;
SetPlayerHealth(playerid,100000);
SendClientMessage(playerid,green,"|- GodMod ON -|");
return SendCommandToAdmins(playerid,"God");
}
else
{
AccInfo[playerid][God] = 0;
SendClientMessage(playerid,red,"|- GodMod OFF -|");
SetPlayerHealth(playerid, 100);
}
return GivePlayerWeapon(playerid,35,0);
}
else SendClientMessage (playerid, 0xFF000000, "ERROR: You're not a VIP member!");
return 1;
}