//=== Alcatore
new alcaptdtuer;
new alcaptdtor;
new alcaptdtuervar;
new alcaptdtorvar;
alcaptdtuer = CreateObject(objectid, coord x y z);
alcaptdtor = CreateObject(objectid, coord x y z);
if(strcmp(cmd,"/alcaptdtor",true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 2002)
{
if(alcaptdtorvar == 0)
{
MoveObject(schwarztor,2804.8999023438,-1449.5999755859,8.8999996185303, 41.5,3.0);
PlaySoundForPlayer(playerid,1035);
SetTimerEx("PlaySoundForPlayer",2000,0,"id",playerid,1036);
SendClientMessage(playerid, COLOR_RED, "Du hast das Alca Tor Geöffnet");
alcaptdtorvar = 1;
}
else
{
MoveObject(alcaptdtor,2804.8999023438,-1449.5999755859,8.8999996185303, 46,3.0);
SendClientMessage(playerid, COLOR_GREEN, "Du hast das Alca Tor Geschlossen!");
alcaptdtorvar = 0;
}
}
else
{
SendClientMessage(playerid, COLOR_GREEN, "Du bist kein Staatsbeamter!");
}
}
if(strcmp(cmd,"/alcaptdtuer",true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 2002)
{
if(alcaptdtuervar == 0)
{
MoveObject(alcaptdtuer,1781.1999511719,-1537.9000244141,8.8999996185303,11.5,3.0);
PlaySoundForPlayer(playerid,1035);
SetTimerEx("PlaySoundForPlayer",2000,0,"id",playerid,1036);
SendClientMessage(playerid, COLOR_RED, "Du hast die Alca Tür Geöffnet!");
alcaptdtuervar = 1;
}
else
{
MoveObject(schwarztor,1781.1999511719,-1537.9000244141,8.8999996185303,16.5,3.0);
SendClientMessage(playerid, COLOR_GREEN, "Du hast die Alca Tür Geschlossen!");
alcaptdtuervar = 0;
}
}
else
{
SendClientMessage(playerid, COLOR_GREEN, "Du bist kein Staatsbeamter!");
}
}
@edit
der admin rank ist nur fürs testen der tore.