13.11.2011, 13:07
PHP код:
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;
}

