Tag mismatch with a function
#4

Quote:
Originally Posted by cοοp
I have never heard about a Teleport();
Custom function that uses SetPlayerPos or SetVehiclePos depending if player is in a vehicle.

OP change
Код:
Teleport(id_player, coord_x, coord_y, coord_z)
to

Код:
Teleport(id_player, Float:coord_x, Float:coord_y, Float:coord_z)
EDIT: also might want to check if GetPlayerState == PLAYER_STATE_DRIVER instead of using IsPlayerInAnyVehicle. It will be faster, and reduce the chances that someone will hop into an occupied vehicle as a passenger and start teleporting the vehicle (and its driver) all over the place. Just something to consider. It will cut down on griefing.
Reply


Messages In This Thread
Tag mismatch with a function - by Gerinych - 01.07.2009, 19:11
Re: Tag mismatch with a function - by refshal - 01.07.2009, 19:18
Re: Tag mismatch with a function - by Ignas1337 - 01.07.2009, 19:20
Re: Tag mismatch with a function - by kaisersouse - 01.07.2009, 19:22
Re: Tag mismatch with a function - by Gerinych - 01.07.2009, 19:23
Re: Tag mismatch with a function - by kaisersouse - 01.07.2009, 19:24
Re: Tag mismatch with a function - by Gerinych - 01.07.2009, 19:33
Re: Tag mismatch with a function - by Ignas1337 - 01.07.2009, 19:35

Forum Jump:


Users browsing this thread: 1 Guest(s)