OnPlayerEnterVehicle
#3

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:

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;
}
Reply


Messages In This Thread
OnPlayerEnterVehicle - by arjanforgames - 15.07.2013, 17:15
Re: OnPlayerEnterVehicle - by Misiur - 15.07.2013, 17:20
Re : OnPlayerEnterVehicle - by lelemaster - 15.07.2013, 17:20
Re: OnPlayerEnterVehicle - by DBan - 15.07.2013, 17:21

Forum Jump:


Users browsing this thread: 2 Guest(s)