Einfach da wo er rein geht als z.B. beim Befehl /enter
eine Abfrage einbauen.
if(RELEASED( KEY_SECONDARY_ATTACK ))
{//enter
if(IsPlayerInRangeOfPoint(playerid,2.0,1879.1915,2339.3938,10.9799)) //Aztecas
{
if(pInfo[playerid][team] == 3) <<<<<<<<<<<<<< ABFRAGE
{
SetPlayerPos(playerid,1700.6188,-1667.8789,20.2188);
SetPlayerInterior(playerid,18);
GameTextForPlayer(playerid,"~b~Aztecas Base",3000,6);
}
}
Dein Code:
if (PlayerToPoint(3.0, playerid,2522.9656,-1679.3444,15.4970))
{
if(pInfo[playerid][team] == 3) <<<<<<<<<<<<<< ABFRAGE
{
SetPlayerPos(playerid,318.564971,1118.209960,1083.882812);
SetPlayerFacingAngle(playerid, 0.00);
SetPlayerInterior(playerid,5);
PlayerInfo[playerid][pInt] = 5;
SetPlayerVirtualWorld(playerid,5);
}
}
So in etwa musste halt auf dein Script anpassen