SA-MP Forums Archive
Bug Car-jacking - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Bug Car-jacking (/showthread.php?tid=200743)



Bug Car-jacking - scottyishere - 19.12.2010

Hello!

Well this is maybe a old bug but it's worth fixing and I don't think it will take up much time.

If a player starts to car-jack another player and when the jacker enters the car (aka player gets out of the car) the car respawns/despawns the player will be removed due to a exception (don't have the code). Well it's really annoying. Maybe if the vehicle despawns and player should return to the default anim without getting removed.

-scotty


Re: Bug Car-jacking - scottyishere - 20.12.2010

BUMP

Also, I would recommend this:

pawn Код:
OnPlayerEnterVehicle(playerid,vehicleid,type) // type: 0 - normal, 1 - carjacking ...
{
     return 1;
}
//and
OnPlayerExitVehicle(playerid,vehicleid,type) // type: 0 - normal, 1 - carjacking ...
{
     return 1;
}
It would fix the carjacking crash bug.

Opinions?


Re: Bug Car-jacking - Redirect Left - 20.12.2010

Quote:
Originally Posted by scottyishere
Посмотреть сообщение
BUMP

Also, I would recommend this:

pawn Код:
OnPlayerEnterVehicle(playerid,vehicleid,type) // type: 0 - normal, 1 - carjacking ...
{
     return 1;
}
//and
OnPlayerExitVehicle(playerid,vehicleid,type) // type: 0 - normal, 1 - carjacking ...
{
     return 1;
}
Yes, i'd love to be able to tell if its a carjack or not natively.


Re: Bug Car-jacking - DRIFT_HUNTER - 20.12.2010

Quote:
Originally Posted by scottyishere
Посмотреть сообщение
BUMP

Also, I would recommend this:

pawn Код:
OnPlayerEnterVehicle(playerid,vehicleid,type) // type: 0 - normal, 1 - carjacking ...
{
     return 1;
}
//and
OnPlayerExitVehicle(playerid,vehicleid,type) // type: 0 - normal, 1 - carjacking ...
{
     return 1;
}
It would fix the carjacking crash bug.

Opinions?
Just check is anyone in that vehicle...