Car scripting help.
#7

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate == PLAYER_STATE_DRIVER)
    {
        new string[200];
        format(string,sizeof(string),"You Are Driving A ~r~ %s",VehicleNames[GetVehicleModel(GetPlayerVehicleID(playerid)) - 400]);
        GameTextForPlayer(playerid,string,2000,5);
    }
    else if (newstate == PLAYER_STATE_PASSENGER)
    {
        new string[200];
        format(string,sizeof(string),"You Are Riding In A ~r~ %s",VehicleNames[GetVehicleModel(GetPlayerVehicleID(playerid)) - 400]);
        GameTextForPlayer(playerid,string,2000,5);
    }
    return 1;
}
it will work for sure, it will produce a game text showing u entered a NRG-500 etc
Reply


Messages In This Thread
Car scripting help. - by rocker3410 - 09.12.2013, 11:17
Re: Car scripting help. - by Threshold - 09.12.2013, 11:20
Re: Car scripting help. - by rocker3410 - 09.12.2013, 11:24
Re: Car scripting help. - by EmilLykke - 09.12.2013, 11:25
Re: Car scripting help. - by rocker3410 - 09.12.2013, 11:28
Re: Car scripting help. - by EmilLykke - 09.12.2013, 11:32
Re: Car scripting help. - by newbie scripter - 09.12.2013, 11:34
Re: Car scripting help. - by rocker3410 - 09.12.2013, 11:40
Re: Car scripting help. - by newbie scripter - 09.12.2013, 11:47

Forum Jump:


Users browsing this thread: 4 Guest(s)