Jump to content

AlexxAdv

Membru
  • Posts

    540
  • Joined

  • Last visited

  • Days Won

    17

Posts posted by AlexxAdv

  1. Deci, am incurcat eu putin,

     

    la onplayerlogin pui

     

    if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 1)

    {
            ShowPlayerDialog(playerid, DIALOG_PAROLAADMIN, DIALOG_STYLE_PASSWORD, "Conectare ca STAFF", "Scrie parola a staff-ului pentru a te conecta", "Gata", "");
            logina[playerid] = SetTimerEx("LoginAdmin",10000,false,"d",playerid);
        }

     

    iar 

     

    public LoginAdmin(playerid)
    {
        KickEx(playerid);
        return 1;
      } 

     

    este altceva, sper ca ai inteles. nu le pui pe amandoua in acelasi loc doar aia cu showplayerdialog pui la onplayerlogin, public-ul il pui dupa alt public, undeva.

    • Thanks 1
  2.  

    DEFINESTI

    #define CUVANT_CHEIE "pui parola pe care vrei sa oceara"  

    #define DIALOG_PAROLAADMIN 9921

    forward LoginAdmin(playerid);

    logina[MAX_PLAYERS], // la variabile

    apoi la

    public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])

    pui 

    if(dialogid == DIALOG_PAROLAADMIN)
        {
            if(response)
            {
                if(strfind(CUVANT_CHEIE, inputtext, true) == 0)
                {
                    SCM(playerid, -1, "Te-ai logat cu succes ca staff.");
                    KillTimer(logina[playerid]);
                }
                else return KickEx(playerid);
            }
            if(!response)return KickEx(playerid);
        }

     

    la onplayerlogin

    if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 1)
        {
            ShowPlayerDialog(playerid, DIALOG_PAROLAADMIN, DIALOG_STYLE_PASSWORD, "Conectare ca STAFF", "Scrie parola a staff-ului pentru a te conecta", "Gata", "");
            logina[playerid] = SetTimerEx("LoginAdmin",10000,false,"d",playerid);
        }

     

     iar ca public pui

     

    public LoginAdmin(playerid)
    {
        Kick(playerid);
        return 1;
    }

     

    Acesta este sistemul pe care il am si eu pe sa.engame.ro functioneaza perfect, daca iti va da erori imi spui ca poate am uitat eu sa copiez ceva din el sa iti pun aici :) dar eu zic ca e tot.

  3. 4 minutes ago, Quasar said:
    
      	if(PlayerInfo[killerid][pMember] == 16 || PlayerInfo[killerid][pLeader] == 16)
    	{
    		if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)
    		{
    			   new killer[MAX_PLAYER_NAME];
    	            GetPlayerName(killerid, killer, sizeof(killer));
    	            format(string,128,"[WAR] %s Da Nang Boys has killed %s The Triads and received 2500$.",killer,name);
    	            SendDNBMessage(COLOR_1GREEN, string);
    	            format(string,128,"[WAR] %s The Triads was pwned by %s Da Nang Boys and lost 2500$.",name,killer);
    	            SendthrMessage(COLOR_1BLUE, string);
    		        GivePlayerMoney(killerid, 2500);
    		        WarInfo[pAlliance1]++;
    		        WarInfo[pDNB]++;
    		        format(string, sizeof(string), "~b~Mafia~w~-%d~n~~p~Ballas~w~-%d~y~~n~Vagos~w~-%d~n~~h~Nang~w~-%d",WarInfo[pMafia],WarInfo[pBallas],WarInfo[pVagos],WarInfo[pDNB]);
    		        TextDrawSetString(Textdraw2, string);
    		        format(string, sizeof(string), "%d",WarInfo[pAlliance1]);
    		        TextDrawSetString(Textdraw6, string);

    Aici de exemplu , de ce primesc wanted si nu primesc cei 2500$ ?

    Incearca sa faci update-ul cu Update(playerid, pCashx); si vezi poate in loc de GivePlayerMoney este definit GivePlayerCash, verifica bine

  4. Salut, sunt AlexxAdv, scripter-ul serverului sa.engame.ro actual si am decis sa postez gamemod-ul pe care a rulat pana acum sa.engame.ro, va rog daca folositi gm-ul sa nu ziceti ca voi l-ati facut etc.

    Am inceput de la gamemode wster.

    Acest gamemode detine orice update facut de catre mine sau encristi pe serverul sa.engame.ro nu are comenzi ascunse sau ceva de gen.

    Tot ce era pe sa.engame.ro are si acest gamemode.

    Link: http://www43.zippyshare.com/v/kKt7Y7IZ/file.html - detine si panel

    • Like 1
    • Upvote 1
×
×
  • 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.