05.06.2014, 12:46
Quote:
It works fine, but I do have a question. How can I display the name of the car that I just spawned?
|
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER)
{
new str[32];
if (newstate == 2 || newstate == 3)
{
format(str, sizeof(str), "~g~~h~%s",VehicleNames[GetVehicleModel(GetPlayerVehicleID(playerid))-400]);
GameTextForPlayer(playerid, str, 1500, 1);
}
}
return 1;
}