if (strcmp("/enter", cmdtext, true, 10) == 0)
{
if(IsPlayerInRangeOfPoint(playerid,8.0,713.8139,-2678.4348,13.4844)|| IsPlayerInRangeOfPoint(playerid,8.0, 894.9775,-4012.6687,13.6000))
{
SetPlayerPos(playerid,363.1381,-74.6095,1001.5078);
SetPlayerInterior(playerid,10);
}
return 1;
} // Command beendet.
{ // Kann nicht funzen, weil das hier in keinem if(strcmp...) steht.
if(IsPlayerInRangeOfPoint(playerid,8.0,901.6625,-4042.6003,13.7859))
{
SetPlayerPos(playerid,296.919982,-108.071998,1001.515625);
SetPlayerInterior(playerid,6);
}
return 1;
}
Also so:
if (strcmp("/enter", cmdtext, true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid,8.0,713.8139,-2678.4348,13.4844) || IsPlayerInRangeOfPoint(playerid,8.0, 894.9775,-4012.6687,13.6000))
{
SetPlayerPos(playerid,363.1381,-74.6095,1001.5078);
SetPlayerInterior(playerid,10);
return 1;
}
if(IsPlayerInRangeOfPoint(playerid,8.0,901.6625,-4042.6003,13.7859))
{
SetPlayerPos(playerid,296.919982,-108.071998,1001.515625);
SetPlayerInterior(playerid,6);
return 1;
}
return 1;
}
So machste das auch mit dem /exit Befehl.