06.01.2011, 11:43
Hey all im working with my friend on a stunt script but ive created this
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
then i can teleport with all cars on G :S
whats wrong with this?
Ty for helping!
-luckie12
Код:
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; }
then he teleports to a place
but this does nothin and if i remove
Код:
if (playerState == PLAYER_STATE_PASSENGER)
whats wrong with this?
Ty for helping!
-luckie12