My npc wont talk on player entry
#6

why not use ispassenger?

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(vehicleid == Taxi)
    {
        if(ispassenger)
        {
            SendClientMessage(playerid, 0xFFFFFFFF ," I am Driveress. I take you to all the airports in San Andreas. My driiving skill was based on an NRG-500. That is why I might drive poorly.");
        }
        else
        {
           // code to execute if player tries to hijack the car..
        }
    }  
    return 1;
}
- not tested, because i'm still at work, but something like that would do the trick.
Reply


Messages In This Thread
My npc wont talk on player entry - by Jagofr - 16.10.2011, 20:45
Re: My npc wont talk on player entry - by [MG]Dimi - 16.10.2011, 20:46
Re: My npc wont talk on player entry - by SuperViper - 16.10.2011, 21:38
Re: My npc wont talk on player entry - by Jagofr - 16.10.2011, 23:02
Re: My npc wont talk on player entry - by Jagofr - 17.10.2011, 12:48
Re: My npc wont talk on player entry - by [Diablo] - 17.10.2011, 12:55
Re: My npc wont talk on player entry - by Jagofr - 17.10.2011, 12:58
Re: My npc wont talk on player entry - by Jagofr - 17.10.2011, 13:11
Re: My npc wont talk on player entry - by [Diablo] - 17.10.2011, 13:12

Forum Jump:


Users browsing this thread: 2 Guest(s)