30.07.2010, 18:58
I am trying to make it where someone enters the car, and when they get into the car it says CIVILIAN VEHICLE as GameText, but I only want it for a certain car id (405). but it is not working for some reason. anyone?
pawn Код:
public OnPlayerStateChange(playerid,newstate,oldstate)
{
if(newstate == 2)
{
new vehicleid = GetVehicleModel(vehicleid);
if(GetVehicleModel(405))
{
GameTextForPlayer(playerid, "Civilian Vehicle", 3000, 3);
return 1;
}
TogglePlayerControllable(playerid, 0);
SendClientMessage(playerid, COLOR_WHITE, "You can start your engine by typing: /start");
return 1;
}
return 1;
}