Quote:
Originally Posted by [Diablo]
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.
|
Dont worry to test it man it works,.. Thanks So that I dont run into this problem again is there a docummentation you used or just common knowledge Because I kinda new to scripting