30.07.2010, 19:06
that didnt work but this did! Thanks for the help!
pawn Код:
public OnPlayerStateChange(playerid,newstate,oldstate)
{
if(newstate == 2)
{
new vehicleid = GetPlayerVehicleID(playerid);
if(GetVehicleModel(vehicleid) == 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;
}