09.12.2013, 11:34
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;
}