if(strcmp(cmdtext, "/lcntor", true) == 0)
{
if(PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pMember] == 5)
{
if(lcntorvar== 0)
{
MoveObject(lcntor,708.29998779297, -1422.9000244141, 9.3000001907349,2.5);
PlaySoundForPlayer(playerid,1035);
SetTimerEx("PlaySoundForPlayer",2000,0,"id",playerid,1036)
lcntorvar = 1;
}
else
{
MoveObject(lcntor,708.29998779297, -1422.9000244141, 15.300000190735,2.5);
PlaySoundForPlayer(playerid,1035);
SetTimerEx("PlaySoundForPlayer",2000,0,"id",playerid,1036)
lcntorvar = 0;
}
}
else
{
SendClientMessage(playerid, COLOR_RED, "Du bist kein LCN Mitglied");
}
return 1;
}
Probier das mal so ...