du musst bei movedynamicobjekt das ja anpassen an deine Tore
also sprich
if(strcmp(cmd,"/lcntor1",true) == 0)
{
if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)
{
if(lcntor1var == 0)
{
MoveDynamicObject(lcntor1,705.85760498,- 1422.60021973, 15.31245422,3.0);
PlaySoundForPlayer(playerid,1035);
SetTimerEx("PlaySoundForPlayer",2000,0,"id",playerid,1036);
lcntor1var = 1;
}
else
{
MoveDynamicObject(lcntor1,717.60455322,- 1422.30126953, 15.31245422,3.0);
PlaySoundForPlayer(playerid,1035);
SetTimerEx("PlaySoundForPlayer",2000,0,"id",playerid,1036);
lcntor1var = 0;
}
}
else SendClientMessage(playerid,COLOR_RED," Du bist kein LCN Mitglied");
return 1;
}
if(strcmp(cmd,"/lcntor2",true) == 0)
{
if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)
{
if(lcntor2var == 0)
{
MoveDynamicObject(lcntor2,649.97235107,- 1549.33496094, 16.62495422,3.0);
PlaySoundForPlayer(playerid,1035);
SetTimerEx("PlaySoundForPlayer",2000,0,"id",playerid,1036);
lcntor2var = 1;
}
else
{
MoveDynamicObject(lcntor2,649.97235107,- 1549.33496094, 16.62495422,3.0);
PlaySoundForPlayer(playerid,1035);
SetTimerEx("PlaySoundForPlayer",2000,0,"id",playerid,1036);
lcntor2var = 0;
}
}
else SendClientMessage(playerid,COLOR_RED," Du bist kein LCN Mitglied");
return 1;
}
if(strcmp(cmd,"/lcntorw",true) == 0)
{
if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)
{
if(lcntorwvar == 0)
{
MoveDynamicObject(lcntorw,725.64514160,- 1592.38952637, 1.84999883,3.0);
PlaySoundForPlayer(playerid,1035);
SetTimerEx("PlaySoundForPlayer",2000,0,"id",playerid,1036);
lcntorwvar = 1;
}
else
{
MoveDynamicObject(lcntorw,737.45214844,- 1591.98388672, 1.84999883,3.0);
PlaySoundForPlayer(playerid,1035);
SetTimerEx("PlaySoundForPlayer",2000,0,"id",playerid,1036);
lcntorwvar = 0;
}
}
else SendClientMessage(playerid,COLOR_RED," Du bist kein LCN Mitglied");
return 1;
}
du hattest überall einfach lcntor dabei willst du ja lcntor1, lcntor2, lcntorw und deswegen musst es so anpassen
mfg