Hallo,
Ich hab zur Zeit das Problem das mein Enter / exit Befehl nicht so ganz will wie ich es will Folgendes er nimmt nur den befehl für Fraktion 1
if(strcmp(cmdtext,"/enter",true)==0)
{
if(GetPVarInt(playerid,"Fraktion")==2)
{
if(IsPlayerInRangeOfPoint(playerid, 7.0,477.4459, -1498.8779, 20.4814))
{
SetPlayerInterior(playerid, 18);
SetPlayerPos(playerid,1710.433715, -1669.379272, 20.225049);
return 1;
}
SendClientMessage(playerid,BLAU,"Du bist Nicht an der Mafia Base.");
return 1;
}
if(GetPVarInt(playerid,"Fraktion")==1)
{
if(IsPlayerInRangeOfPoint(playerid, 7.0, 2495.4001,-1690.6405,14.7656))
{
SetPlayerInterior(playerid, 3);
SetPlayerPos(playerid,2496.049804, -1695.238159, 1014.742187);
return 1;
}
}
SendClientMessage(playerid,BLAU,"Du bist Nicht in der Grove Street.");
return 1;
}
if(strcmp(cmdtext,"/exit",true)==0)
{
if(GetPVarInt(playerid,"Fraktion")==2)
{
if(IsPlayerInRangeOfPoint(playerid, 7.0, 1710.433715, -1669.379272, 20.225049))
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,477.4459, -1498.8779, 20.4814);
return 1;
}
SendClientMessage(playerid,BLAU,"Du bist Nicht Am Ausgangs Punkt !.");
return 1;
}
if(GetPVarInt(playerid,"Fraktion")==1)
{
if(IsPlayerInRangeOfPoint(playerid, 7.0, 2496.049804, -1695.238159, 1014.742187))
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,2495.4001, -1690.6405, 14.7656);
return 1;
}
}
SendClientMessage(playerid,BLAU,"Du bist Nicht Am Ausgangs Punkt !.");
return 1;
}
Hoffe man versteht was ich meine
LG
Justin