Hallo ich habe mir 2 Tor befehle gemacht und das Tor öffnet sich einfach nicht hier die Befehle.
1 Befehl:
if(strcmp(cmd,"/fs2",true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid,15.0,1465.69995117,-2355.80004883,15.30000019 )) // <-15M Radio
{
if(PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11)
{
if(fstor2var == 0)
{
MoveObject(fstor2,1355.19995117,-2330.19995117,15.30000019,3.0);
PlaySoundForPlayer(playerid,1035);
SetTimerEx("PlaySoundForPlayer",2000,0,"id",playerid,1036);
fstor2var = 1;
}
else
{
MoveObject(fstor2,1355.19995117,-2330.19995117,15.30000019,3.0);
PlaySoundForPlayer(playerid,1035);
SetTimerEx("PlaySoundForPlayer",2000,0,"id",playerid,1036);
fstor2var = 0;
}
}
else SendClientMessage(playerid,COLOR_RED," Du bist kein Fahrschul-Lehrer");
return 1;
}
}
2. Befehl:
if(strcmp(cmd,"/taxitor",true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid,15.0,1465.69995117,-2355.80004883,15.30000019 )) // <-15M Radio
{
if(PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10)
{
if(taxitorvar == 0)
{
MoveObject(taxitor,1370.90002441,-2346.39990234,15.30000019,3.0);
PlaySoundForPlayer(playerid,1035);
SetTimerEx("PlaySoundForPlayer",2000,0,"id",playerid,1036);
taxitorvar = 1;
}
else
{
MoveObject(taxitor,1370.90002441,-2346.39990234,15.30000019,3.0);
PlaySoundForPlayer(playerid,1035);
SetTimerEx("PlaySoundForPlayer",2000,0,"id",playerid,1036);
taxitorvar = 0;
}
}
else SendClientMessage(playerid,COLOR_RED," Du bist kein Taxi-Fahrer");
return 1;
}
}
Es Geht nicht