You need 20.000$ to enter in Hydra
#10

Quote:
Originally Posted by akis_tze
Посмотреть сообщение
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    new vehicle;
    vehicle = GetPlayerVehicleID(playerid);
    new money:
    money = GetPlayerMoney(playerid);
    if(newstate == PLAYER_STATE_DRIVER && vehicle == 520)
    {
        if(money < 20000)
        {
            RemovePlayerFromVehicle(playerid);
        }
    }
    return 1;
}
This won't work. This will only work if the vehicle's ID = 520 *facepalms* it should be like this

Mine:
pawn Код:
new vehicleid;
new vehicle;
vehicleid = GetPlayerVehicleID(playerid);
vehicle = GetVehicleModel(vehicleid);
I can't really explain it but thats the correct way. If you figured it out im sorry for posting this :P. But hey it'll help someone next time they try to search something like this.
Reply


Messages In This Thread
You need 20.000$ to enter in Hydra - by Face9000 - 18.12.2010, 15:53
Re: You need 20.000$ to enter in Hydra - by admantis - 18.12.2010, 16:02
Re: You need 20.000$ to enter in Hydra - by blackwave - 18.12.2010, 16:05
Re: You need 20.000$ to enter in Hydra - by admantis - 18.12.2010, 16:06
Re: You need 20.000$ to enter in Hydra - by akis_tze - 18.12.2010, 16:06
Re: You need 20.000$ to enter in Hydra - by blackwave - 18.12.2010, 16:10
Re: You need 20.000$ to enter in Hydra - by admantis - 18.12.2010, 16:10
Re: You need 20.000$ to enter in Hydra - by akis_tze - 18.12.2010, 16:14
Re: You need 20.000$ to enter in Hydra - by Mr.Jvxmc - 18.12.2010, 16:22
Re: You need 20.000$ to enter in Hydra - by Steven82 - 18.12.2010, 17:08

Forum Jump:


Users browsing this thread: 2 Guest(s)