19.02.2019, 16:54
PHP код:
new warnings[MAX_PLAYERS];
public OnPlayerConnect(playerid)
{
warnings[playerid] = 0;
return 1;
}
//OnPlayerStateChange
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 425 && User[playerid][accountVIP] == 0)
{
warnings[playerid] ++;
if(warnings[playerid] > 2) Kick(playerid);
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, -1, "Hunter can only be used by VIP players.");
}