15.07.2013, 17:20
Because you wrote if the vehicle model is 574, then show the textdraws. But any other vehicle than 574 show me the message "* You are not a street cleaner!".
I guess you wanted to have this:
I guess you wanted to have this:
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
new modelid = GetVehicleModel(playerid);
if(modelid == 574)
{
if( /* put your variable of the job */ )
{
TextDrawShowForPlayer(playerid, Textdraw12);
TextDrawShowForPlayer(playerid, Textdraw13);
TextDrawShowForPlayer(playerid, Textdraw14);
}
else
{
SendClientMessage(playerid, -1, "* You are not a street cleaner!");
ClearAnimations(playerid);
}
}
return 1;
}