Skins für Admins

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
  • Sers Leude,
    ich möchte das nur die Admins die ID 15 - 17 nehmen können. Alaos klasse[playerid]=6;
    nur ich komme nicht mehr weiter
    public OnPlayerRequestClass(playerid, classid)
    {
    switch(classid)
    {
    case 0,1,2:klasse[playerid]=1; //Ballas
    case 3,4,5:klasse[playerid]=2; //GSF
    case 6,7,8:klasse[playerid]=3; // LSV
    case 9,10,11:klasse[playerid]=4; //Russische Mafia
    case 12,13,14:klasse[playerid]=5; //Aztecas
    case 15,16,17:klasse[playerid]=6; //Admins
    }


    if(classid == 0 || classid == 1 || classid == 2)
    {
    SetPlayerInterior(playerid,14);
    SetPlayerPos(playerid,258.4893,-41.4008,1002.0234);
    SetPlayerFacingAngle(playerid, 270.0);
    SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234);
    SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);
    GameTextForPlayer(playerid,"~p~Ballas", 3000, 6);
    SetPlayerColor(playerid,PINK);
    SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE1);
    SetPVarInt(playerid,"SkinWahl",1);
    }
    if(classid == 3 || classid == 4 || classid == 5)
    {
    SetPlayerInterior(playerid,14);
    SetPlayerPos(playerid,258.4893,-41.4008,1002.0234);
    SetPlayerFacingAngle(playerid, 270.0);
    SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234);
    SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);
    SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE1);
    GameTextForPlayer(playerid,"~g~Grove Street Family", 3000, 6);
    SetPlayerColor(playerid,GRUEN);
    SetPVarInt(playerid,"SkinWahl",1);
    }
    if(classid == 6 || classid == 7 || classid == 8)
    {
    SetPlayerInterior(playerid,14);
    SetPlayerPos(playerid,258.4893,-41.4008,1002.0234);
    SetPlayerFacingAngle(playerid, 270.0);
    SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234);
    SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);
    SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE1);
    GameTextForPlayer(playerid,"~y~Los Santos Vagos", 3000, 6);
    SetPlayerColor(playerid,GELB);
    SetPVarInt(playerid,"SkinWahl",1);
    }
    if(classid == 9 || classid == 10 || classid == 11)
    {
    SetPlayerInterior(playerid,14);
    SetPlayerPos(playerid,258.4893,-41.4008,1002.0234);
    SetPlayerFacingAngle(playerid, 270.0);
    SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234);
    SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);
    SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE1);
    GameTextForPlayer(playerid,"~l~Die Russische Mafia", 3000, 6);
    SetPlayerColor(playerid,GRAU);
    SetPVarInt(playerid,"SkinWahl",1);
    }
    if(classid == 12 || classid == 13 || classid == 14)
    {
    SetPlayerInterior(playerid,14);
    SetPlayerPos(playerid,258.4893,-41.4008,1002.0234);
    SetPlayerFacingAngle(playerid, 270.0);
    SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234);
    SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);
    SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE1);
    GameTextForPlayer(playerid,"~b~Varios Los Aztecas", 3000, 6);
    SetPlayerColor(playerid,HELLBLAU);
    SetPVarInt(playerid,"SkinWahl",1);
    }
    if(classid == 15 || classid == 16 || classid == 17)
    {
    SetPlayerInterior(playerid,14);
    SetPlayerPos(playerid,258.4893,-41.4008,1002.0234);
    SetPlayerFacingAngle(playerid, 270.0);
    SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234);
    SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);
    SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE1);
    GameTextForPlayer(playerid,"Administratoren", 3000, 6);
    SetPlayerColor(playerid,HELLBLAU);
    SetPVarInt(playerid,"SkinWahl",1);
    }
    return 1;
    }


    @Schwabbel deine Hilfe wird benötigt.


    mfG,
    Ien_levin

    :) SWAGETTI & YOLONAISE!

    2 Mal editiert, zuletzt von John_Sanclear ()

  • Dann schreibs mal so:


    if(classid == 15 || classid == 16 || classid == 17)
    {
    if(!IsPlayerAdmin(playerid)) return 1; //Abfrage anpassen auf deine Funktion/Variable
    SetPlayerInterior(playerid,14);
    SetPlayerPos(playerid,258.4893,-41.4008,1002.0234);
    SetPlayerFacingAngle(playerid, 270.0);
    SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234);
    SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);
    SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE1);
    GameTextForPlayer(playerid,"Administratoren", 3000, 6);
    SetPlayerColor(playerid,PINK);
    SetPVarInt(playerid,"Skinnwahl",1);
    }


    So ungefähr, aber da kann dir hier auch jeder andere helfen :rolleyes:

    ast2ufdyxkb1.png


    Leute, lernt scripten und versucht mal lieber etwas selber zu schreiben, als es aus einem GF zu kopieren. :S