Cods fail help
#2

Why are you checking for KEY_YES? That isn't called when a player enters a vehicle. Also, you should check out this page on the SA:MP wiki: https://sampwiki.blast.hk/wiki/OnPlayerK...heck_for_a_key

You can't check for keys that way.

If you want to eject people when they enter a car it's better to use OnPlayerStateChange and do something like this:

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
     if(newstate == PLAYER_STATE_DRIVER)
     {
      //your code
     }
     return 1;
}
Reply


Messages In This Thread
Cods fail help - by Ryz - 13.10.2014, 16:58
Re: Cods fail help - by Chenko - 13.10.2014, 17:20
Re: Cods fail help - by Ryz - 13.10.2014, 17:40
Re: Cods fail help - by Chenko - 13.10.2014, 18:13
Re: Cods fail help - by Thanos1997 - 13.10.2014, 18:13
Re: Cods fail help - by Vince - 13.10.2014, 18:29
Re: Cods fail help - by Ryz - 14.10.2014, 14:00
Re: Cods fail help - by zaibaslr2 - 14.10.2014, 14:04
Re: Cods fail help - by Ryz - 14.10.2014, 14:28
Re: Cods fail help - by zaibaslr2 - 14.10.2014, 15:29

Forum Jump:


Users browsing this thread: 2 Guest(s)