with something small
#9

Just like me you said I did., but it did not work I look, here this the coordinates that I use:

Coordinates Spawn Player:

Quote:

SetPlayerPos(playerid,1173.1627,-2065.5620,432.379;
SetPlayerFacingAngle(playerid, 359.3109);

Coordinates of the fall of parkour:

Quote:

AddPlayerClass(104,1198.9684,-2022.5673,351.9539,74.8250,0,0,0,0,0,0);

Then I did the code in this way:

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;
}

what's wrong? :/
Reply


Messages In This Thread
with something small - by leon44 - 18.01.2015, 18:23
Re: with something small - by Schneider - 18.01.2015, 18:53
Re: with something small - by leon44 - 18.01.2015, 18:57
Re: with something small - by Schneider - 18.01.2015, 19:11
Re: with something small - by leon44 - 18.01.2015, 20:54
Re: with something small - by Schneider - 18.01.2015, 20:56
Re: with something small - by leon44 - 18.01.2015, 21:16
Re: with something small - by Schneider - 18.01.2015, 21:20
Re: with something small - by leon44 - 18.01.2015, 23:22
Re: with something small - by Schneider - 18.01.2015, 23:36

Forum Jump:


Users browsing this thread: 3 Guest(s)