03.06.2011, 00:45
Tenta isto:
Ou isto:
PHP код:
if (strcmp(cmd, "/elevador2", true) == 0)
{
if(PlayerToPoint(2.0, playerid, 1912.76464844,-1356.61962891,13.28764534))
{
SetPlayerPos(playerid, 1910.75439453,-1356.62219238,13.82241058);
return 1;
}
if(PlayerToPoint(2.0, playerid, 1910.75439453,-1356.62219238,13.82241058))
{
SetPlayerPos(playerid, 1912.76464844,-1356.61962891,13.28764534);
return 1;
}
return 1;
}
PHP код:
if (strcmp(cmd, "/elevador2", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid,2.0, 1912.76464844,-1356.61962891,13.28764534))
{
SetPlayerPos(playerid, 1910.75439453,-1356.62219238,13.82241058);
return 1;
}
if(IsPlayerInRangeOfPoint(playerid,2.0, 1910.75439453,-1356.62219238,13.82241058))
{
SetPlayerPos(playerid, 1912.76464844,-1356.61962891,13.28764534);
return 1;
}
return 1;
}