25.04.2017, 00:35
(
Last edited by Scorpion659; 25/04/2017 at 01:06 AM.
)
vc ta criando dois comando /entrar? um pra cada lugar? se sim, coloque apenas um e coloque dois ifs se ele tiver no rage tal entra em tal lugar, se tiver eu outro rangepoint entra em outro local, as mesmas funзхes mas num mesmo comando
tente: @EDIT
tente: @EDIT
PHP Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/entrar", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1219.0685,-1812.5293,16.593)
{
SetPlayerInterior(playerid, 3);
SetPlayerPos(playerid, 1494.325195,1304.942871,1093.289062);
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 938.0220,1733.2141,8.8516))
{
SetPlayerInterior(playerid, 3);
SetPlayerPos(playerid, 1494.325195,1304.942871,1093.289062);
}
}
if(strcmp(cmdtext, "/sair", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1494.325195,1304.942871,1093.289062))
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 1219.0685,-1812.5293,16.593;
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 938.0220,1733.2141,8.8516))
{
SetPlayerInterior(playerid, 3);
SetPlayerPos(playerid, 1494.325195,1304.942871,1093.289062);
}
}
return 1;
}