Ich habs auch schon so probiert:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(cmdtext, "/betreten1", true)==0)
{
if (GetPlayerState(playerid) == 1 && PlayerToPoint(2.0, playerid,1199.2571,-918.1477,43.1232))
{
SetPlayerInterior(playerid, 10);
SetPlayerPos(playerid,363.7410,-74.5395,1001.5078);
return 1;
}
if (strcmp(cmdtext, "/verlassen1", true)==0)
{
if (GetPlayerState(playerid) == 1 && PlayerToPoint(2.0, playerid,362.8705,-75.1645,1001.5078))
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,1199.2748,-919.1830,43.1152);
return 1;
}
if (strcmp(cmdtext, "/betreten2", true)==0)
{
if (GetPlayerState(playerid) == 1 && PlayerToPoint(2.0, playerid,1555.5046,-1675.6783,16.1953))
{
SetPlayerInterior(playerid, 3);
SetPlayerPos(playerid,288.7767,169.1552,1007.1719);
return 1;
}
if (strcmp(cmdtext, "/verlassen2", true)==0)
{
if (GetPlayerState(playerid) == 1 && PlayerToPoint(2.0, playerid,288.7909,166.9683,1007.1719))
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,1553.8743,-1675.6884,16.1953);
return 1;
}
if (strcmp(cmdtext, "/betreten3", true)==0)
{
if (GetPlayerState(playerid) == 1 && PlayerToPoint(2.0, playerid,1368.9501,-1279.7542,13.5469))
{
SetPlayerInterior(playerid, 1);
SetPlayerPos(playerid,285.5067,-40.7249,1001.5156);
return 1;
}
if (strcmp(cmdtext, "/verlassen3", true)==0)
{
if (GetPlayerState(playerid) == 1 && PlayerToPoint(2.0, playerid,285.4802,-41.8052,1001.5156))
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,1367.9753,-1279.7747,13.5469);
return 1;
}
INFO: Hab das nur so probiert um zu sehen ob es daran lag das die befehle gleich waren aber so ging/geht das auch nicht! -.-
EDIT: Wäre schön wenn sich ma n Experte melden würde!