help me with allowing vehicles with score
#7

Quote:
Originally Posted by BlackBomb
Посмотреть сообщение
wizzy you dont understand what i exactly means,
i mean that if someone need to use hunter he need to get 500 scores like this..
You never said anything about specific vehicles.

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate == PLAYER_STATE_DRIVER)
    {
        switch(GetVehicleModel(GetPlayerVehicleID(playerid)))
        {
            case 425:
            {
                if(GetPlayerScore(playerid) < 500)
                {
                    SendClientMessage(playerid, -1, "You need atleast 500 score to use that vehicle");
                    RemovePlayerFromVehicle(playerid);
                }
            }
        }
    }
    return 1;
}
That's for hunter. For other vehicle's models, use it like that: case 425, N, N:
Reply


Messages In This Thread
help me with allowing vehicles with score - by ReD_HunTeR - 07.12.2013, 14:09
Re: help me with allowing vehicles with score - by BizzyD - 07.12.2013, 14:15
Re: help me with allowing vehicles with score - by ReD_HunTeR - 07.12.2013, 15:07
Re: help me with allowing vehicles with score - by Wizzy951 - 07.12.2013, 15:16
Re: help me with allowing vehicles with score - by ReD_HunTeR - 07.12.2013, 15:46
Re: help me with allowing vehicles with score - by Loot - 07.12.2013, 16:01
Re: help me with allowing vehicles with score - by Konstantinos - 07.12.2013, 16:02
Re: help me with allowing vehicles with score - by ReD_HunTeR - 07.12.2013, 18:12

Forum Jump:


Users browsing this thread: 1 Guest(s)