Team Car Jack
#8

Most people will learn from examples, especially if they have struggled with the problem themselves for a bit. I always offer as much explanation as I can to the posts I write.

I understand your frustration in this being a scripting discussion board with few discussion topics (****** has made some fantastic ones), and many "How do I..." topics. If we teach each other when we have problems, we can excel as a community. We're all on the same team here.

On that note, I am not sure if you can stop them from car jacking, but you can definitely remove them after (and possibly punish them?). I'm not sure how this code will run, as a_samp.inc says PLAYER_STATE_ENTER_VEHICLE_DRIVER is "used internally".

pawn Код:
OnPlayerStateChange(playerid, newstate, oldstate) {
   if(newstate == PLAYER_STATE_ENTER_VEHICLE_DRIVER && oldstate == PLAYER_STATE_ONFOOT) {
     // Player is entering a vehicle?
   } else if(newstate == PLAYER_STATE_DRIVER) {
     // Player has entered a vehicle
   }

   return 1;
}
Reply


Messages In This Thread
Team Car Jack - by MidoTheHawk - 04.06.2009, 17:41
Re: Team Car Jack - by hoodline - 04.06.2009, 18:20
Re: Team Car Jack - by samgreen - 04.06.2009, 19:19
Re: Team Car Jack - by MidoTheHawk - 05.06.2009, 00:00
Re: Team Car Jack - by efeX - 05.06.2009, 00:17
Re: Team Car Jack - by BMUK - 05.06.2009, 00:29
Re: Team Car Jack - by efeX - 05.06.2009, 00:31
Re: Team Car Jack - by samgreen - 05.06.2009, 06:31
Re: Team Car Jack - by BMUK - 05.06.2009, 11:03
Re: Team Car Jack - by lol2112 - 05.06.2009, 12:31

Forum Jump:


Users browsing this thread: 1 Guest(s)