22.06.2011, 06:50
pawn Код:
if(AccInfo[playerid][pVip] < 1 || AccInfo[playerid][Level] < 5 )
{
if(newstate == PLAYER_STATE_DRIVER) //Checks if hes new state is driver
{
new model = GetVehicleModel(GetPlayerVehicleID(playerid));
if(model == 425 || model == 520 || model == 432) //Checks if the modelid is hunter, hydra & tank
{
SendClientMessage(playerid, 0xFFFFFFAA, "This vehicle is only for VIPs!"); //Just send a message to inform him about he is not allowed to drive this vehicle
RemovePlayerFromVehicle(playerid); //Removed the player from the vehicle
}
}
pawn Код:
if (AccInfo[playerid][pVip] < 1 || AccInfo[playerid][Level] < 5 )
pawn Код:
if(accinfo[playerid][pVip] is LESS THAN 1 || AccInfo[playerid][Level] LESS THAN 5)
pawn Код:
if (AccInfo[playerid][pVip] >= 1 || AccInfo[playerid][Level] >= 5 )
{
if(newstate == PLAYER_STATE_DRIVER) //Checks if hes new state is driver
{
new model = GetVehicleModel(GetPlayerVehicleID(playerid));
if(model == 425 || model == 520 || model == 432) //Checks if the modelid is hunter, hydra & tank
{
SendClientMessage(playerid, 0xFFFFFFAA, "This vehicle is only for VIPs!"); //Just send a message to inform him about he is not allowed to drive this vehicle
RemovePlayerFromVehicle(playerid); //Removed the player from the vehicle
}
}