13.10.2014, 17:20
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:
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;
}