skinwahl

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
  • verstehe net was du meinst ^^
    oder meinst du das hier:


    public OnPlayerRequestClass(playerid, classid)
    {

    SetPlayerPos(playerid, 2536.4468,-1677.1610,19.9302);
    SetPlayerFacingAngle(playerid, 89.4983);
    SetPlayerCameraPos(playerid, 2530.0239,-1677.8695,19.9302);
    SetPlayerCameraLookAt(playerid, 2536.4468,-1677.1610,19.9302);
    //hier steht über jedem skin den man sich auswählt der name des skins.
    if(classid == 0 || classid == 1 || classid == 2 || classid == 3 || classid == 4 || classid == 5 || classid == 6){
    SetPlayerColor(playerid,0x33AA33AA);
    GameTextForPlayer(playerid, "~g~Grove Street", 5000, 6);}
    else if(classid == 7 || classid == 8 || classid == 9 || classid == 10){
    SetPlayerColor(playerid,0xC11D91B5);
    GameTextForPlayer(playerid, "~p~Ballas", 5000, 6);}
    else if(classid == 11 || classid == 12 || classid == 13 || classid == 14 || classid == 15 || classid == 16 || classid == 17){
    SetPlayerColor(playerid,0x00FFFFFF);
    GameTextForPlayer(playerid, "~b~~h~~h~Aztecas", 5000, 6);}
    else if(classid == 18 || classid == 19 || classid == 20 || classid == 21 || classid == 22 || classid == 23){
    SetPlayerColor(playerid,0xFFFF00CD);
    GameTextForPlayer(playerid, "~y~Al Qaida", 5000, 6);}
    else if(classid == 24 || classid == 25 || classid == 26 || classid == 27 || classid == 28 || classid == 29 || classid == 30){
    SetPlayerColor(playerid,0xFFFFFFFF);
    GameTextForPlayer(playerid, "~w~Yakuza", 5000, 6);}
    else if(classid == 31 || classid == 32 || classid == 33 || classid == 34 || classid == 35 || classid == 36){
    SetPlayerColor(playerid,0xFFFFFFFF);
    GameTextForPlayer(playerid, "~w~L C N", 5000, 6);}
    else if(classid == 37 || classid == 38 || classid == 39 || classid == 40 || classid == 41 || classid == 42){
    SetPlayerColor(playerid,0xFF0000B0);
    GameTextForPlayer(playerid, "~r~Biker", 5000, 6);}
    else if(classid == 43 || classid == 44 || classid == 45 || classid == 46){
    SetPlayerColor(playerid,0x0000FFFF);
    GameTextForPlayer(playerid, "~b~~h~Los Santos Polzei", 5000, 6);}
    else if(classid == 47 || classid == 48 || classid == 49 || classid == 50){
    SetPlayerColor(playerid,0x0000FFFF);
    GameTextForPlayer(playerid, "~b~~h~Los Santos Polzei", 5000, 6);}
    else if(classid == 51 || classid == 52 || classid == 53|| classid == 54){
    SetPlayerColor(playerid,0x0000FFFF);
    GameTextForPlayer(playerid, "~b~~h~Los Santos Polzei", 5000, 6);}
    else if(classid == 55){
    SetPlayerColor(playerid,0xFFFF00CD);
    GameTextForPlayer(playerid, "~r~Ar~y~my", 5000, 6);}
    else if(classid == 56 || classid == 57 || classid == 58 || classid == 59 || classid == 60){
    SetPlayerColor(playerid,0x00B7FFFF);
    GameTextForPlayer(playerid, "~b~Regie~w~rung", 5000, 6);}
    else if(classid == 61|| classid == 62 || classid == 63 || classid == 64){
    SetPlayerColor(playerid,0xAA3333AA);
    GameTextForPlayer(playerid, "~r~Ar~w~zt", 5000, 6);}
    else{
    SetPlayerColor(playerid,0xFFFFFFFF);
    GameTextForPlayer(playerid, "Zivilist", 5000, 6);}
    //hier werden die Gangzonen den Usern gezeigt:
    GangZoneShowForPlayer(playerid, Grovezone,0x2C882CAA);
    GangZoneShowForPlayer(playerid, Lcnzone, 0x000000BE);
    GangZoneShowForPlayer(playerid, Atzenzone, 0x00CCFFB0);
    GangZoneShowForPlayer(playerid, Ballaszone, 0xC11D91B5);
    GangZoneShowForPlayer(playerid, Hazone, HA-Rot);
    GangZoneShowForPlayer(playerid, Gelbzone, 0xFFFF00CD);
    GangZoneShowForPlayer(playerid, Yakuzazone,0xFFFFFFBC);


    switch(classid)
    {
    case 0..6: gTeam[playerid] = Team_Gs; //skins 1-7 sind gsler
    case 7,8,9,10: gTeam[playerid] = Team_Ballas; //skins 8-11 sind Ballas
    case 12..18: gTeam[playerid] = Team_Atzen; // skins 12-18 sind Aztecas
    case 19..24: gTeam[playerid] = Team_Aq; // skins 19-24 sind Al Quaida
    case 25..31: gTeam[playerid] = Team_Yakis;//skins 25-31 sind Yakuza
    case 32..37: gTeam[playerid] = Team_Lcn; //skins 32-37 sind LCNler
    case 38..42: gTeam[playerid] = Team_Ha; //skins 38-42 sind Hells Angels
    case 43..46: gTeam[playerid] = Team_Cops_LS; //skins 43-47 sind ls-cops
    case 47..50: gTeam[playerid] = Team_Cops_SF; //skins 47-50 sind sf-cops
    case 51..54: gTeam[playerid] = Team_Cops_LV; //skins 51-54 sind lv-cops
    case 55: gTeam[playerid] = Team_Army; //skin 55 ist Army
    case 56..60: gTeam[playerid] = Team_Staat;//skins 56-60 sind regierungsmitglieder
    case 61..64: gTeam[playerid] = Team_Medic;//skind 61-64 sind Ärzte
    default: gTeam[playerid] = TEAM_ZIVILISTEN; // alle restlichen Skins
    }
    return 1;
    }