10.11.2011, 12:51
Hello, I'm trying to freeze Z (height) and I want peoples opinion on the best way to do it. Currently I am doing it like this:
But obviously it's annoying having the screen jump every 1/2 second. Is there a way to prevent the player from falling at all or is this the only way?
Thanks.
Код:
forward OneHalfSecond(); public OneHalfSecond() { for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(gPlayer[i][Freeze_Z] == 1) { new Float:curX, Float:curY, Float:curZ; GetPlayerPos(i, curX, curY, curZ); SetPlayerPos(i, curX, curY, gPlayer[i][Freeze_Z_Amount]); } } } }
Thanks.