if(strcmp(cmd, "/zollcontrol", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pAdmin] < 2000 || PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pLeader] == 4 || PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pLeader] == 7 || PlayerInfo[playerid][pLeader] == 8 || PlayerInfo[playerid][pLeader] == 9 || PlayerInfo[playerid][pLeader] == 10 || PlayerInfo[playerid][pLeader] == 11 || PlayerInfo[playerid][pLeader] == 12 || PlayerInfo[playerid][pLeader] ==13 || PlayerInfo[playerid][pLeader] == 14 || PlayerInfo[playerid][pLeader] == 15 || PlayerInfo[playerid][pLeader] == 16 || PlayerInfo[playerid][pLeader] == 17 || PlayerInfo[playerid][pLeader] == 18 || PlayerInfo[playerid][pLeader] == 19 || PlayerInfo[playerid][pLeader] == 20 || PlayerInfo[playerid][pLeader] == 21 || PlayerInfo[playerid][pLeader] == 22 || PlayerInfo[playerid][pLeader] == 23)
{
SendClientMessage(playerid, COLOR_GREY, "Dir ist es nicht erlaubt, diesen Befehl zu benutzen!");
return 1;
}
new x_zoll
x_zoll = strtok(cmdtext, idx);
if(!strlen(x_zoll)) {
SendClientMessage(playerid, COLOR_WHITE, "|____________________ Zollkontrolle ____________________|");
SendClientMessage(playerid, COLOR_WHITE, "Verwendung: /zollcontrol [Zollname] [0/1] (0 = zu,1 = auf)");
SendClientMessage(playerid, COLOR_GREY, "Verfügbare Namen: lslvhighway");
SendClientMessage(playerid, COLOR_WHITE, "|___________________________________________________|");
return 1;
}
new leitplanke1;
new leitplanke2;
new leitplanke3;
new leitplanke4;
leitplanke1 = CreateObject(978, 1724.947265625, 442.55859375, 29.5, 0.0000, 0.0000, 342.13073730469);
leitplanke2 = CreateObject(978, 1716.8037109375, 445.126953125, 29.5, 0.0000, 0.0000, 342.13073730469);
leitplanke3 = CreateObject(978, 1707.6093755, 448.0634765625, 29.5, 0.0000, 0.0000, 342.13073730469);
leitplanke4 = CreateObject(978, 1698.90234375, 451.22265265, 29.5, 0.0000, 0.0000, 342.13073730469);
if(strcmp(x_zoll,"lslvhighway 0",true) == 0)
{
MoveObject(leitplanke1, 1724.947265625, 442.55859375, 30.728940963745,3);
MoveObject(leitplanke2, 1716.8037109375, 445.126953125, 30.7289409637458,3);
MoveObject(leitplanke3, 1707.6093755, 448.0634765625, 30.728940963745,3);
MoveObject(leitplanke4, 1698.90234375, 451.22265265, 30.728940963745,3);
SendClientMessage(playerid, 0xFFFFFFFF,"Du Hast den Zoll LS-LV Highway geschlossen");
return 1;
}
if(strcmp(x_zoll,"lslvhighway 1",true) == 0)
{
MoveObject(schranke2, 1724.947265625, 442.55859375, 30.728940963745,3);
MoveObject(schranke3, 1716.8037109375, 445.126953125, 30.7289409637458,3);
MoveObject(schranke4, 1707.6093755, 448.0634765625, 30.728940963745,3);
MoveObject(schranke5, 1698.90234375, 451.22265265, 30.728940963745,3);
SendClientMessage(playerid, 0xFFFFFFFF,"Du Hast den Zoll LS-LV Highway geöffnet");
Alles anzeigen