18.01.2015, 23:22
Just like me you said I did., but it did not work I look, here this the coordinates that I use:
Coordinates Spawn Player:
Coordinates of the fall of parkour:
Then I did the code in this way:
what's wrong? :/
Coordinates Spawn Player:
Quote:
SetPlayerPos(playerid,1173.1627,-2065.5620,432.379; SetPlayerFacingAngle(playerid, 359.3109); |
Quote:
AddPlayerClass(104,1198.9684,-2022.5673,351.9539,74.8250,0,0,0,0,0,0); |
Quote:
forward CheckHeight(); public CheckHeight() { new Float:Z; for(new i; i<MAX_PLAYERS; i++) { if(!IsPlayerConnected(i)) continue; GetPlayerPos(i, Z, Z, Z); if(74.8250 < LOWEST_COORDINATE) // ''74.8250, Are the coordinates ''Z'' the falling of parkour { SetPlayerPos(i,1173.1627,-2065.5620,432.379; SetPlayerFacingAngle(i, 359.3109); } } return 1; } |