Why dose this do nothing?
#9

Quote:
Originally Posted by Gappy
Or do it this way.

pawn Код:
public OnPlayerStateChange(playerid,newstate,oldstate)
{
  if(newstate == PLAYER_STATE_DRIVER)
  {
    if(IsPlayerInVehicle(playerid, 520))
    {
       RemovePlayerFromVehicle(playerid);
      SendClientMessage(playerid, 0xFFFFFFFF, "Sorry but flying a hydra is currently unavalible!");
    }
  }
  return 1;
}
That's a stupid code.
IsPlayerInVehicle checks the VEHICLE ID and not the MODEL ID. So who uses vehicle id 520 will just be kicked from the vehicle with the reason "Sorry but flying a hydra bla bla" while it might be not a hydra!
Reply


Messages In This Thread
Why dose this do nothing? - by [mad]MLK - 08.09.2009, 03:04
Re: Why dose this do nothing? - by bubka3 - 08.09.2009, 03:14
Re: Why dose this do nothing? - by [mad]MLK - 08.09.2009, 03:29
Re: Why dose this do nothing? - by farse - 08.09.2009, 03:40
Re: Why dose this do nothing? - by Gappy - 08.09.2009, 03:41
Re: Why dose this do nothing? - by Abernethy - 08.09.2009, 04:11
Re: Why dose this do nothing? - by Gappy - 08.09.2009, 04:48
Re: Why dose this do nothing? - by Mowgli - 08.09.2009, 09:01
Re: Why dose this do nothing? - by MenaceX^ - 08.09.2009, 09:11
Re: Why dose this do nothing? - by Gappy - 08.09.2009, 09:24

Forum Jump:


Users browsing this thread: 2 Guest(s)