17.10.2011, 12:55
why not use ispassenger?
- not tested, because i'm still at work, but something like that would do the trick.
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;
}