doch auf /tor geändert!
Einmal hier
if(IsPlayerInRangeOfPoint(playerid,10.0,-1035.6021,-1661.4397,77.3222) || IsPlayerInRangeOfPoint(playerid,10.0,-1026.6064,-1671.4553,77.5703))
{
OnPlayerCommandText(playerid,"/tor");
}
Und hier
if (strcmp("/tor", cmdtext, true, 10) == 0)
{
if(PlayerInfo[playerid][pMember] == 20 || PlayerInfo[playerid][pLeader] == 20)
{
if(IsPlayerInRangeOfPoint(playerid,10.0,-1035.6021,-1661.4397,77.3222) || IsPlayerInRangeOfPoint(playerid,10.0,-1026.6064,-1671.4553,77.5703))
{
SendClientMessage(playerid,COLOR_WHITE,"Das Tor schließt in 10 Selkunden");
format(string, sizeof(string), "Terrorist %s oeffnet das Terrortor", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
MoveObject(terrortor2,-1029.3000488281, -1667.1999511719, 79.300003051758-10,3.0);
PlaySoundForPlayer(playerid,1035);
SetTimerEx("PlaySoundForPlayer",2000,0,"id",playerid,1036);
SetTimer("LspdtorZu", 5000, 0);
}
else