13.11.2011, 13:06
So, I made this /exit command, my /enter command is working fine, it TP's me to the interior and the position, when i try to /exit the interior, nothing, not even: "[SERVER]Unknown Command"... I tried everything, browsed *******, this forum, ******, nothing... This is the code:
If anyone has ideas, respond quickly, thanks!
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/exit", cmdtext, true, 10) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 1.0, 384.808624,173.804992,1008.382812));
SetPlayerPos(playerid, 2302.9736,-53.8796,26.4844);
SetPlayerInterior(playerid, 0);
return 1;
}
if (strcmp("/enter", cmdtext, true, 10) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 1.0, 2302.9736,-53.8796,26.4844))
SetPlayerPos(playerid, 384.808624,173.804992,1008.382812);
SetPlayerInterior(playerid, 3);
return 1;
}