Adminsystem

Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • if(strcmp(cmd, "/gotons", true) == 0)


    {


    if(IsPlayerConnected(playerid))


    {


    if(PlayerInfo[playerid][pAdmin] >= 3)


    {


    if (GetPlayerState(playerid) == 2)


    {


    new tmpcar = GetPlayerVehicleID(playerid);


    SetVehiclePos(tmpcar, 1146.4182,-1490.3602,15.4217);


    LinkVehicleToInterior(tmpcar,0);


    TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;


    }


    else


    {


    SetPlayerPos(playerid, 1146.4182,-1490.3602,15.4217);


    }


    SendClientMessage(playerid, COLOR_GRAD1, "Du hast dich zum Zivispawn geportet.");


    SetPlayerInterior(playerid,0);


    PlayerInfo[playerid][pInt] = 0;


    }


    else


    {


    SendClientMessage(playerid, COLOR_GRAD1, "Du bist nicht befugt !");


    }


    }


    return 1;


    }



    if(strcmp(cmd, "/gotosh", true) == 0)


    {


    if(IsPlayerConnected(playerid))


    {


    if(PlayerInfo[playerid][pAdmin] >= 3)


    {


    if (GetPlayerState(playerid) == 2)


    {


    new tmpcar = GetPlayerVehicleID(playerid);


    SetVehiclePos(tmpcar, 1529.0354,-1775.1642,33.4297);


    LinkVehicleToInterior(tmpcar,0);


    TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;


    }


    else


    {


    SetPlayerPos(playerid, 1529.0354,-1775.1642,33.4297);


    }


    SendClientMessage(playerid, COLOR_GRAD1, "Du hast dich zur Stadthalle geportet.");


    SetPlayerInterior(playerid,0);


    PlayerInfo[playerid][pInt] = 0;


    }


    else


    {


    SendClientMessage(playerid, COLOR_GRAD1, "Du bist nicht befugt !");


    }


    }


    return 1;


    }


    if(strcmp(cmd, "/gotopdh", true) == 0)


    {


    if(IsPlayerConnected(playerid))


    {


    if(PlayerInfo[playerid][pAdmin] >= 3)


    {


    if (GetPlayerState(playerid) == 2)


    {


    new tmpcar = GetPlayerVehicleID(playerid);


    SetVehiclePos(tmpcar, 1515.5270,-1674.5002,29.6489);


    LinkVehicleToInterior(tmpcar,0);


    TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;


    }


    else


    {


    SetPlayerPos(playerid, 1515.5270,-1674.5002,29.6489);


    }


    SendClientMessage(playerid, COLOR_GRAD1, " Du hast dich Teleportiert [Nutze es nicht aus, es wird in der Log. Angezeigt!]");


    SetPlayerInterior(playerid,0);


    PlayerInfo[playerid][pInt] = 0;


    }


    else


    {


    SendClientMessage(playerid, COLOR_GRAD1, " Du bist nicht befugt !");


    }


    }


    return 1;


    }


    if(strcmp(cmd, "/gotopdh2", true) == 0)


    {


    if(IsPlayerConnected(playerid))


    {


    if(PlayerInfo[playerid][pAdmin] >= 3)


    {


    if (GetPlayerState(playerid) == 2)


    {


    new tmpcar = GetPlayerVehicleID(playerid);


    SetVehiclePos(tmpcar, 1515.3579,-1649.8158,37.4395);


    LinkVehicleToInterior(tmpcar,0);


    TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;


    }


    else


    {


    SetPlayerPos(playerid, 1515.3579,-1649.8158,37.4395);


    }


    SendClientMessage(playerid, COLOR_GRAD1, "Du hast dich Teleportiert.");


    SetPlayerInterior(playerid,0);


    PlayerInfo[playerid][pInt] = 0;


    }


    else


    {


    SendClientMessage(playerid, COLOR_GRAD1, "Du bist nicht befugt !");


    }


    }


    return 1;


    }


    if(strcmp(cmd, "/gotols", true) == 0)


    {


    if(IsPlayerConnected(playerid))


    {


    if(PlayerInfo[playerid][pAdmin] >= 3)


    {


    if (GetPlayerState(playerid) == 2)


    {


    new tmpcar = GetPlayerVehicleID(playerid);


    SetVehiclePos(tmpcar, 1607.6361,-1695.2461,13.2740);


    LinkVehicleToInterior(tmpcar,0);


    SetPlayerVirtualWorld(playerid,0);


    TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;


    }


    else


    {


    SetPlayerPos(playerid, 1607.6361,-1695.2461,13.2740);


    SetPlayerVirtualWorld(playerid,0);


    }


    SendClientMessage(playerid, COLOR_GRAD1, "Du hast dich nach Los Santos geportet.");


    GetPlayerName(playerid, sendername, sizeof(sendername));


    format(string, sizeof(string), "%s hat sich nach Los Santos geportet.", sendername);


    ABroadCast(0x00F5FFFF,string,4);


    SetPlayerInterior(playerid,0);


    PlayerInfo[playerid][pInt] = 0;


    SetPlayerVirtualWorld(playerid,0);


    }


    else


    {


    SendClientMessage(playerid, COLOR_GRAD1, "Du bist nicht befugt !");


    }


    }


    return 1;


    }


    if(strcmp(cmd, "/gotolv", true) == 0)


    {


    if(IsPlayerConnected(playerid))


    {


    if (PlayerInfo[playerid][pAdmin] >= 3)


    {


    if (GetPlayerState(playerid) == 2)


    {


    new tmpcar = GetPlayerVehicleID(playerid);


    SetVehiclePos(tmpcar, 1699.2, 1435.1, 10.7);


    LinkVehicleToInterior(tmpcar,0);


    TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;


    SetPlayerVirtualWorld(playerid,0);


    }


    else


    {


    SetPlayerPos(playerid, 1699.2,1435.1, 10.7);


    SetPlayerVirtualWorld(playerid,0);


    }


    SendClientMessage(playerid, COLOR_GRAD1, " Du hast dich nach Las Venturas geportet.");


    GetPlayerName(playerid, sendername, sizeof(sendername));


    format(string, sizeof(string), "%s hat sich nach Las Venturas geportet.", sendername);


    ABroadCast(0x00F5FFFF,string,4);


    SetPlayerInterior(playerid,0);


    PlayerInfo[playerid][pInt] = 0;


    SetPlayerVirtualWorld(playerid,0);


    }


    else


    {


    SendClientMessage(playerid, COLOR_GRAD1, " Du bist nicht befugt!");


    }


    }


    return 1;


    }


    if(strcmp(cmd, "/gotosf", true) == 0)


    {


    if(IsPlayerConnected(playerid))


    {


    if (PlayerInfo[playerid][pAdmin] >= 3)


    {


    if (GetPlayerState(playerid) == 2)


    {


    new tmpcar = GetPlayerVehicleID(playerid);


    SetVehiclePos(tmpcar, -1417.0,-295.8,14.1);


    LinkVehicleToInterior(tmpcar,0);


    TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;


    SetPlayerVirtualWorld(playerid,0);


    }


    else


    {


    SetPlayerPos(playerid, -1417.0,-295.8,14.1);


    SetPlayerVirtualWorld(playerid,0);


    }


    SendClientMessage(playerid, COLOR_GRAD1, " Du hast dich nach San Fierro geportet.");


    GetPlayerName(playerid, sendername, sizeof(sendername));


    format(string, sizeof(string), "%s hat sich nach San Fierro geportet.", sendername);


    ABroadCast(0x00F5FFFF,string,4);


    SetPlayerInterior(playerid,0);


    PlayerInfo[playerid][pInt] = 0;


    SetPlayerVirtualWorld(playerid,0);


    }


    else


    {


    SendClientMessage(playerid, COLOR_GRAD1, " Du bist nicht befugt!");


    }


    }


    return 1;



    edit:
    das ist nur Goto für GF


    Gruss: Shadow