Can you explain
#7

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
        }
    }
line
pawn Код:
if (AccInfo[playerid][pVip] < 1 || AccInfo[playerid][Level] < 5 )
is
pawn Код:
if(accinfo[playerid][pVip] is LESS THAN 1 || AccInfo[playerid][Level] LESS THAN 5)
Working code:
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
        }
    }
Peace
Reply


Messages In This Thread
Can you explain - by MA_proking - 22.06.2011, 03:40
Re: Can you explain - by Laronic - 22.06.2011, 04:06
Re: Can you explain - by MA_proking - 22.06.2011, 05:54
Re: Can you explain - by Laronic - 22.06.2011, 05:58
Re: Can you explain - by MA_proking - 22.06.2011, 06:08
Re: Can you explain - by MA_proking - 22.06.2011, 06:35
Re: Can you explain - by Max_Coldheart - 22.06.2011, 06:50
Re: Can you explain - by Basicz - 22.06.2011, 06:51
Re: Can you explain - by Max_Coldheart - 22.06.2011, 06:52
Re: Can you explain - by Basicz - 22.06.2011, 07:03

Forum Jump:


Users browsing this thread: 4 Guest(s)