Jump to content

Stefan.

Membru
  • Posts

    17
  • Joined

  • Last visited

    Never

Posts posted by Stefan.

  1. Salut. Cand dau compile imi da acest warning: warning 209: function "Streamer_OnPlayerDisconnect" should return a value

    Cum il pot rezolva?

    Aici este public OnPlayerDisconnect:

    [pawn]public OnPlayerDisconnect(playerid, reason)

    {

    gActivePlayers[playerid]--;

    numplayers--;

    if(reason == 0)

    {

        PlayerInfo[playerid][pCrashed] = 1;

        for(new slot = 0; slot != 12; slot++)

        {

            new wep, ammo;

            GetPlayerWeaponData(playerid, slot, wep, ammo);

            if(wep != 0 && ammo != 0)

            {

                if(PlayerInfo[playerid][pGun1] == 0) { PlayerInfo[playerid][pGun1] = wep; PlayerInfo[playerid][pAmmo1] = ammo; }

                else if(PlayerInfo[playerid][pGun2] == 0) { PlayerInfo[playerid][pGun2] = wep; PlayerInfo[playerid][pAmmo2] = ammo; }

                else if(PlayerInfo[playerid][pGun3] == 0) { PlayerInfo[playerid][pGun3] = wep; PlayerInfo[playerid][pAmmo3] = ammo; }

                else if(PlayerInfo[playerid][pGun4] == 0) { PlayerInfo[playerid][pGun4] = wep; PlayerInfo[playerid][pAmmo4] = ammo; }

            }

        }

    }

    OnPlayerUpdate(playerid);

    PlayerInfo[playerid][pWL] = GetPlayerWantedLevel(playerid);

    for(new i = 0; i < MAX_PLAYERS; i++)

    {

        if(IsPlayerConnected(i))

        {

            if(TaxiAccepted < 999)

            {

            if(TaxiAccepted == playerid)

            {

                TaxiAccepted = 999;

                GameTextForPlayer(i, "~w~Taxi Caller~n~~r~Left the game", 5000, 1);

                TaxiCallTime = 0;

                DisablePlayerCheckpoint(i);

            }

            }

            else if(BusAccepted < 999)

            {

            if(BusAccepted == playerid)

            {

                BusAccepted = 999;

                GameTextForPlayer(i, "~w~Bus Caller~n~~r~Left the game", 5000, 1);

                BusCallTime = 0;

                DisablePlayerCheckpoint(i);

            }

            }

        }

    }

    /*if(GettingCK[playerid] < 999)

    {

        if(IsPlayerConnected(GettingCK[playerid]))

        {

            SendClientMessage(GettingCK[playerid], COLOR_YELLOW, "Your Character Kill has left the server, try again later.");

            OnCK[GettingCK[playerid]] = 999;

        }

    }*/

    if (GetPlayerVehicleID(playerid) == 131) SetVehicleToRespawn(131);

    OnPlayerUpdate(playerid);

    //----------------------------------------------------------

    if(TransportCost[playerid] > 0 && TransportDriver[playerid] < 999)

    {

        if(IsPlayerConnected(TransportDriver[playerid]))

    {

        new string[64];

        TransportMoney[TransportDriver[playerid]] += TransportCost[playerid];

        TransportTime[TransportDriver[playerid]] = 0;

        TransportCost[TransportDriver[playerid]] = 0;

        format(string, sizeof(string), "~w~Passenger left~n~~g~Earned $%d",TransportCost[playerid]);

        GameTextForPlayer(TransportDriver[playerid], string, 5000, 1);

    }

    }

    if(GotHit[playerid] > 0)

    {

        if(GetChased[playerid] < 999)

        {

            if(IsPlayerConnected(GetChased[playerid]))

            {

            SendClientMessage(GetChased[playerid], COLOR_YELLOW, "Your Hit has left the server.");

                GoChase[GetChased[playerid]] = 999;

    }

        }

    }

    if(PlayerPaintballing[playerid] != 0)

    {

        PaintballPlayers --;

    }

    if(PlayerKarting[playerid] > 0 && PlayerInKart[playerid] > 0)

    {

        KartingPlayers --;

    }

    if(PlayersChannel[playerid] < 999)

    {

    IRCInfo[PlayersChannel[playerid]][iPlayers] -= 1;

    }

    if(HireCar[playerid] != 299)

    {

    gLastDriver[HireCar[playerid]] = 300;

    gCarLock[HireCar[playerid]] = 0;

    UnLockCar(HireCar[playerid]);

    if(reason != 0)

    {

    SetVehicleToRespawn(HireCar[playerid]);

    }

    }

    if(GangCar[playerid] != 512)

    {

    gLastDriver[GangCar[playerid]] = 520;

    gCarLock[GangCar[playerid]] = 0;

    UnLockCar(GangCar[playerid]);

    }

    if (gLastCar[playerid] > 0)

    {

    gLastDriver[gLastCar[playerid]] = 300;

    if(PlayerInfo[playerid][pPhousekey] != gLastCar[playerid]-1)

    {

    gCarLock[gLastCar[playerid]] = 0;

    UnLockCar(gLastCar[playerid]);

    }

    }

    if(PlayerBoxing[playerid] > 0)

    {

        if(Boxer1 == playerid)

        {

            if(IsPlayerConnected(Boxer2))

            {

            PlayerBoxing[boxer2] = 0;

            SetPlayerPos(Boxer2, 765.8433,3.2924,1000.7186);

            SetPlayerInterior(Boxer2, 5);

            PlayerInfo[boxer2][pInt] = 5;

            GameTextForPlayer(Boxer2, "~r~Match interupted", 5000, 1);

    }

        }

        else if(Boxer2 == playerid)

        {

            if(IsPlayerConnected(Boxer1))

            {

            PlayerBoxing[boxer1] = 0;

            SetPlayerPos(Boxer1, 765.8433,3.2924,1000.7186);

            SetPlayerInterior(Boxer1, 5);

            PlayerInfo[boxer2][pInt] = 5;

            GameTextForPlayer(Boxer1, "~r~Match interupted", 5000, 1);

    }

        }

        InRing = 0;

        RoundStarted = 0;

    Boxer1 = 255;

    Boxer2 = 255;

    TBoxer = 255;

    }

        if(TransportDuty[playerid] == 1)

    {

    TaxiDrivers -= 1;

    }

        else if(TransportDuty[playerid] == 2)

    {

    BusDrivers -= 1;

    }

    if(PlayerInfo[playerid][pJob] == 11)

    {

        if(JobDuty[playerid] == 1) { Medics -= 1; }

    }

    else if(PlayerInfo[playerid][pJob] == 7)

    {

        if(JobDuty[playerid] == 1) { Mechanics -= 1; }

    }

    else if(PlayerInfo[playerid][pJob] == 17)

    {

    if(JobDuty[playerid] == 1) { PizzaBoys -= 1; }

    }

    if (PlayerInfo[playerid][pRoadblock] != 0)

    {

    RemoveRoadblock(playerid);

    }

    BusrouteEast[playerid][0] = 0;

    BusrouteWest[playerid][0] = 0;

    TextDrawDestroy(Textdraw42[playerid]);

    TextDrawDestroy(Textdraw41[playerid]);

    ttroute[playerid] = 0;

    }[/pawn]

    Mersi!

    PS: Scuzati daca nu am postat la sectiunea corespunzatoare.

  2. Te referi cand dai /aod sa ai viata infinita ?

    Daca da modifici aici, si pui 99999 :

      if(strcmp(cmd, "/aod", true) == 0) 
        { 
            if (PlayerInfo[playerid][pAdmin] >= 1) 
               { 
                if(AdminDuty[playerid] == 1) 
                { 
                           GetPlayerName(playerid, sendername, sizeof(sendername)); 
                           format(string, sizeof(string), "Admin %s is now off duty.", sendername,playerid); 
                           SendClientMessageToAll(COLOR_DBLUE,string); 
                              AdminDuty[playerid] = 0; 
                           SetPlayerHealth(playerid,100); 
                           SetPlayerArmour(playerid,0); 
                           SetPlayerToTeamColor(playerid); 
                           KillTimer(hp); 
                } 
                else 
                { 
                    GetPlayerName(playerid, sendername, sizeof(sendername)); 
                    format(string, sizeof(string), "Admin %s is now on duty.",sendername,playerid); 
                    SendClientMessageToAll(0xFAAFBEFF,string); 
                       AdminDuty[playerid] = 1; 
                    SetPlayerHealth(playerid,100); // aici pui 99999
                    SetPlayerArmour(playerid,100); // aici pui 99999
                    hp = SetTimer("Infinity", 500, 1); // <----------------- 
                    SetPlayerColor(playerid,0xFAAFBEFF); 
                    for(new i = 0; i < MAX_PLAYERS; i ++) 
                    { 
                            if(IsPlayerConnected(i)) 
                            { 
                              SetPlayerMarkerForPlayer( i,playerid,0xFAAFBEFF ); 
                            } 
                    } 
                } 
            } 
            else 
            { 
                SendClientMessage(playerid,COLOR_GREY,"Your not an admin !"); 
            } 
            return 1; 
        }  

  3. Salut. Am si eu un server de RolePlay si doresc sa pun JunkBuster pe el, cel mai nou(cred ca 11 e). L'am downloadat de aici: http://forum.sa-mp.com/showthread.php?t=307665 (cel de pe mediafire) . As dori sa imi spuneti sau sa imi aratati cum se instaleaza. Am gasit acolo un README, dar nu inteleg cum se instaleaza de acolo. Multumesc !

  4. Salut. Am facut la unele factiuni poarta , dar din doua bucati, adica una se deschide intr'o parte si una in cealalta si am pus timer , dar ele nu revin odata. Ma puteti ajuta ? Am facut si filmulet ca sa puteti vedea : http://www.youtube.com/watch?v=GjknCJHyJwU&feature=youtu.be .

    PS: Sunt la fel puse timeurile:

     SetTimerEx("pdgate1close",5 * 1000,false,"d",playerid);
    SetTimerEx("pdgate2close",5 * 1000,false,"d",playerid); 

    Multumesc !

  5. @GunSkill - Am downloadat si am copiat toate cele 3 fisiere unde trebuie ( streamer.dll, streamer.so si streamer.inc ) si cand deschid serverul imi zice asa :

     
    ----------
    Loaded log file: "server_log.txt".
    ----------
    
    SA-MP Dedicated Server
    ----------------------
    v0.3d, (C)2005-2011 SA-MP Team
    
    
    Server Plugins
    --------------
     Loading plugin: sscanf
    
    
     ===============================
    
          sscanf plugin loaded.
    
       (c) 2009 Alex "Y_Less" Cole
    
     ===============================
    
      Loaded.
     Loading plugin: streamer
    
    
    *** Streamer Plugin v2.6 by Incognito loaded ***
    
      Loaded.
     Loaded 2 plugins.
    
    
    Started server on port: 7777, with maxplayers: 50 lanmode is ON.
    
    
    Filterscripts
    ---------------
      Loading filterscript 'ls_elevator.amx'...
      Loading filterscript 'antiflood.amx'...
      Loading filterscript 'antiflood-rate.amx'...
      Unable to load filterscript 'antiflood-rate.amx'.
      Loading filterscript 'Anti-join-flooding.amx'...
     Anti-join-flooding script loaded.
      Loading filterscript 'Clock.amx'...
    
    --------------------------------------
     By War_Cry
    --------------------------------------
    
      Loading filterscript 'TowCars.amx'...
    
     TowCars Filter Script v1.0 Loading...
    **********************
          (Zeruel_Angel)
    
    TowCars Filter Script fully Loaded
    **********************************
    
    
      Loading filterscript 'sunglasses.amx'...
    
    --------------------------
          Sungalsses
    --------------------------
    
      Loading filterscript 'FS.amx'...
      Loading filterscript 'Pickup.amx'...
      Loading filterscript 'roleplayguide.amx'...
    
    --------------------------------------
     WebTCF Roleplay Guide - Loaded
    --------------------------------------
    
      Loaded 9 filterscripts.
    
    *** Streamer Plugin: Include file version (0) does not match plugin version (0x2
    6002) (script needs to be recompiled with the latest include file)
    *** Streamer Plugin: Obsolete or invalid native found (script needs to be recomp
    iled with the latest include file)
    Script[gamemodes/just2playedit(7).amx]: Run time error 19: "File or function is
    not found"
    Number of vehicle models: 0
     

    Ce trebuie sa fac ? Am compilat si inca o data gm'ul.

  6. Salut !

    Am vazut tutoriale cu MoveObject sau Mutarea unui obiect la comanda/tasta, am facut exact cum este explcita acolo ( http://www.sa-mp.ro/forum/index.php/topic,1600.0.html ), dar poarta mi se roteste rau cand o misc(deschid). Am facut un mic filmulet ca sa va dati seama exact despre ce este vorba : http://www.youtube.com/watch?v=qhl_TDYpjqI&context=C43c13ccADvjVQa1PpcFM505SVh5gZ2nUUIfNWi-VMR7nVZMGSb5s= . Sper sa ma puteti ajuta.

    [move]Multumesc mult ![/move]

  7. Am si eu o problema cu deschiderea portilor, mai exact aici cum e scris, adica creezi obiectul cu toate cele 6 directii (x,y,z,rotx,roty,rotz), cum e aici

     obiect = CreateObject(971, 0.0,0.0,0.0, 0.0, 0.0, 0.0); 
    iar cand il pui sa se roteasca la o comanda/tasta punem doar x,y,z cum este aici :
     MoveObject(obiect, 1.0, 1.0, 1.0, 5); 

    . Eu am la poarta rotz=90.000, unde pun asta ? Am pus asa ca aici doar xyz, dar cand o deschid se deschide fara cele 90GRADE.

  8. Salut. Am un server de sa:mp si cand intra,  sau moare cineva se face ora 00:00. La payday se face cat ii ora normala, iar cand intra un player pe el se face 00:00(ma refer la timp). Asta doar cand intra cineva(sau cand moare), nu si cand iese. Ma puteti ajuta ? Multumesc

  9. Salut. Am un server de sa:mp si cand intra,  sau moare cineva se face ora 00:00. La payday se face cat ii ora normala, iar cand intra un player pe el se face 00:00(ma refer la timp). Asta doar cand intra cineva(sau cand moare), nu si cand iese. Ma puteti ajuta ? Multumesc

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.