Nach dem Tot

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

  • public OnPlayerSpawn(playerid)
    {
    klasse[playerid]=1;
    {
    SetPlayerColor(playerid,PINK);
    }

    if(Spieler[playerid][Paintball] == 1)
    {
    SetPlayerPos(playerid,-975.975708,1060.983032,1345.671875);
    SetPlayerInterior(playerid,10);
    ResetPlayerWeapons(playerid);
    GivePlayerWeapon(playerid,24,150);
    GivePlayerWeapon(playerid,27,80);
    GivePlayerWeapon(playerid,34,50);
    }

    if(GetPVarInt(playerid,"SkinWahl")==1)
    {
    SetPlayerVirtualWorld(playerid,0);
    SetPlayerInterior(playerid,0);
    SetPlayerSpecialAction(playerid,SPECIAL_ACTION_NONE);
    SetPVarInt(playerid,"SkinWahl",0);
    return 1;


    }

    SetPlayerColor(playerid,WEISS);
    TextDrawShowForPlayer(playerid,Uhr);
    TextDrawShowForPlayer(playerid,SD);
    TextDrawShowForPlayer(playerid,Datum);
    TextDrawShowForPlayer(playerid,Leiste);
    TextDrawShowForPlayer(playerid,Leiste1);
    TextDrawShowForPlayer(playerid,Kills[playerid]);
    TextDrawShowForPlayer(playerid,Tode[playerid]);
    TextDrawShowForPlayer(playerid,KDRATE[playerid]);
    TextDrawShowForPlayer(playerid,Pres[playerid]);
    TextDrawShowForPlayer(playerid,StatsBox);
    TextDrawShowForPlayer(playerid,StatsBox1);
    TextDrawShowForPlayer(playerid,StatsAnfang);


    SetPVarInt(playerid,"Killstreak",0);
    return 1;
    }

    :) SWAGETTI & YOLONAISE!


  • 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
    }

    :) SWAGETTI & YOLONAISE!


  • teste mal damit.

  • public OnPlayerSpawn(playerid)
    {
    if(klasse[playerid] == 1)
    {
    SetPlayerColor(playerid,PINK); //Ballas wird Pink
    }

    if(Spieler[playerid][Paintball] == 1)
    {
    SetPlayerPos(playerid,-975.975708,1060.983032,1345.671875);
    SetPlayerInterior(playerid,10);
    ResetPlayerWeapons(playerid);
    GivePlayerWeapon(playerid,24,150);
    GivePlayerWeapon(playerid,27,80);
    GivePlayerWeapon(playerid,34,50);
    }

    if(GetPVarInt(playerid,"SkinWahl")==1)
    {
    SetPlayerVirtualWorld(playerid,0);
    SetPlayerInterior(playerid,0);
    SetPlayerSpecialAction(playerid,SPECIAL_ACTION_NONE);
    SetPVarInt(playerid,"SkinWahl",0);
    return 1;


    }

    SetPlayerColor(playerid,WEISS); // Alle Spieler werden wieder weiß
    TextDrawShowForPlayer(playerid,Uhr);
    TextDrawShowForPlayer(playerid,SD);
    TextDrawShowForPlayer(playerid,Datum);
    TextDrawShowForPlayer(playerid,Leiste);
    TextDrawShowForPlayer(playerid,Leiste1);
    TextDrawShowForPlayer(playerid,Kills[playerid]);
    TextDrawShowForPlayer(playerid,Tode[playerid]);
    TextDrawShowForPlayer(playerid,KDRATE[playerid]);
    TextDrawShowForPlayer(playerid,Pres[playerid]);
    TextDrawShowForPlayer(playerid,StatsBox);
    TextDrawShowForPlayer(playerid,StatsBox1);
    TextDrawShowForPlayer(playerid,StatsAnfang);


    SetPVarInt(playerid,"Killstreak",0);
    return 1;
    }


    Du musst bei dem letzten SetPlayerColor auch eine Abfrage machen ob er Zivi ist