OnPlayerStateChange :S
#1

Hey all im working with my friend on a stunt script but ive created this
Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    new playerState = GetPlayerState(playerid);
    
    if (playerState == PLAYER_STATE_PASSENGER)
    {
	if(IsPlayerInVehicle(playerid, 459))
		{
		SetPlayerPos(playerid,1879.9384,-1397.2222,13.5703);
	}
	}
	return 1;
}
thats for when i enter a car (Berkleys RC Van = id 459) with g
then he teleports to a place
but this does nothin and if i remove
Код:
    if (playerState == PLAYER_STATE_PASSENGER)
then i can teleport with all cars on G :S
whats wrong with this?

Ty for helping!

-luckie12
Reply


Messages In This Thread
OnPlayerStateChange :S - by luckie12 - 06.01.2011, 11:43
Re: OnPlayerStateChange :S - by _rAped - 06.01.2011, 11:59
Re: OnPlayerStateChange :S - by luckie12 - 06.01.2011, 12:22

Forum Jump:


Users browsing this thread: 1 Guest(s)