Setting a 3 limit counter then kicking the player...
#2

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] > 2Kick(playerid);
    
RemovePlayerFromVehicle(playerid);
    
SendClientMessage(playerid, -1"Hunter can only be used by VIP players.");

Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)