[Tutorial] How to fix onplayerclickmap function
#5

Quote:
Originally Posted by Gammix
Посмотреть сообщение
OT: Just use SetPlayerPosFindZ under the callback, instead of making it complex like your code.
https://sampwiki.blast.hk/wiki/SetPlayerPosFindZ

Quote:
Originally Posted by wiki
This function does not work if the new coordinates are far away from where the player currently is. The Z height will be 0, which will likely put them underground.
He uses SetPlayerPos a few milliseconds before SetPlayerPosFindZ to make this work properly.

Quote:
Originally Posted by Kar
Посмотреть сообщение
Or just use mapandreas.
SetPlayerPosFindZ has a pro over MapAndreas:

Quote:
Originally Posted by wiki
This sets the players position then adjusts the players z-coordinate to the nearest solid ground under the position.
While MapAndreas always gives the position of the ground.
Reply


Messages In This Thread
How to fix onplayerclickmap function - by leo9 - 13.11.2015, 16:49
Re: How to fix onplayerclickmap function - by Kevln - 13.11.2015, 22:56
Re: How to fix onplayerclickmap function - by Gammix - 14.11.2015, 02:59
Re: How to fix onplayerclickmap function - by Kar - 14.11.2015, 03:03
Re: How to fix onplayerclickmap function - by kristo - 14.11.2015, 10:02
Re: How to fix onplayerclickmap function - by Gammix - 14.11.2015, 11:47
Re: How to fix onplayerclickmap function - by leo9 - 14.11.2015, 14:13

Forum Jump:


Users browsing this thread: 2 Guest(s)