Wie oben gesagt
Hier die Befehle:
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;
}
}
if(strcmp(cmd,"/fs3",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(fstor3schuppen == 0)
{
MoveObject(fstor3,1370.90002441,-2346.39990234,15.30000019,3.0);
PlaySoundForPlayer(playerid,1035);
SetTimerEx("PlaySoundForPlayer",2000,0,"id",playerid,1036);
fstor3schuppen = 1;
}
else
{
MoveObject(fstor3,1370.90002441,-2346.39990234,15.30000019,3.0);
PlaySoundForPlayer(playerid,1035);
SetTimerEx("PlaySoundForPlayer",2000,0,"id",playerid,1036);
fstor3schuppen = 0;
}
}
else SendClientMessage(playerid,COLOR_RED," Du bist kein Fahrschul-Lehrer");
return 1;
}
}
Aber es bewegt sich kein Wenig