Jump to content

marin1223

Membru
  • Posts

    13
  • Joined

  • Last visited

Posts posted by marin1223

  1. Am o problema, daca un player intra pe server cel de-al doilea player care incearca sa intre nu se poate loga.

     

    OnPlayerConnect: https://pastebin.com/LGJyMbDf

    server_log:

    01:28:13] [debug] #0 001eb678 in ?? (1) from gamemode.amx
    [01:28:13] [debug] #1 00038408 in public AB_OnPlayerConnect (1) from gamemode.amx
    [01:28:13] [debug] #2 0001bc64 in public L_AFK_OPC (1) from gamemode.amx
    [01:28:13] [debug] #3 native CallLocalFunction () from samp03svr
    [01:28:13] [debug] #4 0001b248 in public GAC_OnPlayerConnect (1) from gamemode.amx
    [01:28:13] [debug] #5 native CallLocalFunction () from samp03svr
    [01:28:13] [debug] #6 0001a47c in public MP_OPC (1) from gamemode.amx
    [01:28:13] [debug] #7 native CallLocalFunction () from samp03svr
    [01:28:13] [debug] #8 0001746c in ?? (1) from gamemode.amx
    [01:28:13] [debug] #9 0000e4e8 in public SSCANF_OnPlayerConnect (1) from gamemode.amx
    [01:28:13] [debug] #10 000024fc in public Itter_OnPlayerConnect (1) from gamemode.amx
    [01:28:13] [debug] #11 0000135c in public OnPlayerConnect (1) from gamemode.amx

  2. Am incercat sa fac un admin chat dar nu merge...

    CMD:adminchat(playerid, params[])
    {
        new mesaj[128], string[128];
        if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, COLOR_ERROR, "Nu esti admin.");
        if(sscanf(params, "s[128]", mesaj)) return SendClientMessage(playerid, COLOR_SYN, "Foloseste: /adminchat <mesaj>");
        {
            if(PlayerInfo[playerid][pAdmin] > 1 && PlayerInfo[playerid][pAdmin] < 5)format(string, sizeof(string), "Admin %s[lv %d]: %s", GetName(playerid), PlayerInfo[playerid][pAdmin], mesaj);
            AdminChat(COLOR_AC, string, 1);
        }
        return 1;
    }

     

    function AdminChat(color, mesaj[], lv)
    {
        foreach(new i : Player)
        {
            if(PlayerInfo[pAdmin] >= lv)
            {
                SendClientMessage(i, color, mesaj);
            }
        }
        return 1;
    }

  3. Acum 7 minute, Mister a spus:

    Nu am modificat nimic in afara de aranjare si stergerea parantezelor in plus dar in fine incearca asa

     

    
    
    CMD:nre(playerid, params[])
    {
    	new message[164], nstring[164];
    	if(gLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_WHITE, ""MARO"(!) "ALB"Nu esti logat si nu poti sa folosesti aceasta comanda!");
    	if(HelperAnswer[playerid] == -1) return SendClientMessage(playerid, COLOR_WHITE, ""MARO"(!) "ALB"Nu ai primit o intrebare.");
        if(sscanf(params, "s[164]", message))
        {
           SendClientMessage(playerid, COLOR_SYN,"Sintaxa:{FFFFFF} /nre <raspuns>");
           return 1;
        }
    
        if(PlayerInfo[playerid][pHelper] >= 1)
        {
        	PlayerInfo[playerid][ pStaffPoints]++;
        	Update(playerid, pStaffPointsx);
        	Questions--;
        	UpdateStaffTextdraw();
        		
        	format(gString, sizeof(gString), "(N) Helper %s: @%s, {FFFF00}%s{FFFF00}", GetName(playerid),GetName(HelperAnswer[playerid]), message);
            SendClientMessage(playerid, COLOR_NOB, gString);
        	new string2[128];
    
    		if(strlen(gString) > 120)
    		{
    			strmid(string2, gString, 110, 256);
    			strdel(gString, 110,  256);
    
    			format(gString,128,"%s ...",gString);
    			format(string2,128,"... %s",string2);
    		}
    		
    		foreach(new x : Player)
    		{
    			if(NewbieEnabled[x] == 1)
    			{
    				format(nstring, sizeof(nstring), "(N) Jucator %s: %s", GetName(HelperAnswer[playerid]),PlayerInfo[HelperAnswer[playerid]][pNewbie]);
    				SendClientMessage(x,COLOR_NOB, nstring);
    					
    				if(strlen(gString) > 120)
    				{
    					SendClientMessage(x,COLOR_NOB, gString);
    					SendClientMessage(x,COLOR_NOB, string2);
    				}
    				else
    				{
    					SendClientMessage(x,COLOR_NOB, gString);
    				}
    			}
    
    			if(HelperAnswer[x] == playerid)
    			{
    				format(PlayerInfo[x][pNewbie], 164, " ");
    				HelperAnswer[x] = -1;
    				HelperAnswer[playerid] = -1;
    				Question[x] = 0;
    			}  
    
    			if(strlen(PlayerInfo[x][pNewbie]) > 1 && HelperAnswer[x] == -1)
    			{
    				  format(gString, sizeof(gString), "(Question) %s - lvl %d: %s", GetName(x), PlayerInfo[x][pLevel], PlayerInfo[x][pNewbie]);
    				  SendClientMessage(playerid, COLOR_NEWBIE, gString);
    				  HelperAnswer[x] = playerid;
    				  HelperAnswer[playerid] = x;
    				  format(gString, sizeof(gString), "Intrebarea ta a fost atribuita helperului %s, te rugam sa astepti raspunsul acestuia.", GetName(HelperAnswer[playerid]));
    				  SendClientMessage(x,COLOR_NOB,gString);
    				  SendClientMessage(x,COLOR_NOB,"Chat-ul (/n)ewbie a fost activat automat. Dupa ce primesti un raspuns il poti dezactiva (/nonewbie)");
    			}
    			return 1;
    		}
        }
        else return SendClientMessage(playerid, COLOR_WHITE, ""MARO"LX:"ALB" Nu esti autorizat sa folosesti aceasta comanda!");
    
        return 1;
    }

     

    Acum merge. Mersi mult.

  4. Acum 11 minute, Mister a spus:

    salut, acele warninguri nu afecteaza gmul sau compilarea ca si informatie.

    incearca codul de mai jos

    
    CMD:nre(playerid, params[])
    {
    	new message[164], nstring[164];
    	if(gLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_WHITE, ""MARO"(!) "ALB"Nu esti logat si nu poti sa folosesti aceasta comanda!");
    	if(HelperAnswer[playerid] == -1) return SendClientMessage(playerid, COLOR_WHITE, ""MARO"(!) "ALB"Nu ai primit o intrebare.");
    	if(sscanf(params, "s[164]", message)) return SendClientMessage(playerid, COLOR_SYN,"Sintaxa:{FFFFFF} /nre <raspuns>");
    
    
    	if(PlayerInfo[playerid][pHelper] >= 1)
    	{
    		PlayerInfo[playerid][ pStaffPoints]++;
    		Update(playerid, pStaffPointsx);
    		Questions--;
    		UpdateStaffTextdraw();
    
    		format(gString, sizeof(gString), "(N) Helper %s: @%s, {FFFF00}%s{FFFF00}", GetName(playerid),GetName(HelperAnswer[playerid]), message);
    		SendClientMessage(playerid, COLOR_NOB, gString);
    		new string2[128];
    
    		if(strlen(gString) > 120)
    		{
    			strmid(string2, gString, 110, 256);
    			strdel(gString, 110,  256);
    			format(gString,128,"%s ...",gString);
    			format(string2,128,"... %s",string2);
    		}
    
    		foreach(new x : Player)
    		{
    			if(NewbieEnabled[x] == 1)
    			{
    				format(nstring, sizeof(nstring), "(N) Jucator %s: %s", GetName(HelperAnswer[playerid]),PlayerInfo[HelperAnswer[playerid]][pNewbie]);
    				SendClientMessage(x,COLOR_NOB, nstring);
    
    				if(strlen(gString) > 120)
    				{
    					SendClientMessage(x,COLOR_NOB, gString);
    					SendClientMessage(x,COLOR_NOB, string2);
    				}
    				else	SendClientMessage(x,COLOR_NOB, gString);			
    			}
    
    			if(HelperAnswer[x] == playerid)
    			{
    				format(PlayerInfo[x][pNewbie], 164, " ");
    				HelperAnswer[x] = -1;
    				HelperAnswer[playerid] = -1;
    				Question[x] = 0;
    			}  
    
    			if(strlen(PlayerInfo[x][pNewbie]) > 1 && HelperAnswer[x] == -1)
    			{
    				format(gString, sizeof(gString), "(Question) %s - lvl %d: %s", GetName(x), PlayerInfo[x][pLevel], PlayerInfo[x][pNewbie]);
    				SendClientMessage(playerid, COLOR_NEWBIE, gString);
    				HelperAnswer[x] = playerid;
    				HelperAnswer[playerid] = x;
    				format(gString, sizeof(gString), "Intrebarea ta a fost atribuita helperului %s, te rugam sa astepti raspunsul acestuia.", GetName(HelperAnswer[playerid]));
    				SendClientMessage(x,COLOR_NOB,gString);
    				SendClientMessage(x,COLOR_NOB,"Chat-ul (/n)ewbie a fost activat automat. Dupa ce primesti un raspuns il poti dezactiva (/nonewbie)");
    			}
    			return 1;
    		}
    	}
    	else return SendClientMessage(playerid, COLOR_WHITE, ""MARO"LX:"ALB" Nu esti autorizat sa folosesti aceasta comanda!");
    	return 1;
    }

     

    Nu mai imi da loose indentation, dar acum pe server nu apare jucatorului raspunsul dat de helper.

  5. La 11.08.2016 la 16:38, s4uriK.Official a spus:

    Dupa cum bine stiti m-am apucat de un proiect, chiar mi-am deschis si un server de pe acest proiect. Dar dupa cum se vede nu prea am avut succes si am spus sa-mi postez munca indiferent cat de mult am lucrat la el. 
    Iar pe langa acest gamemode o sa va ofer si panelul. Sper ca apreciati munca depusa si apasati pe +1.
     
    Link gamemode -> http://www.mediafire.com/download/nuow5ylkvhuu626/s4uriK.rar
    Link gamemode fara erori (.pwn) -> http://www.mediafire.com/download/4m2glfcn4vlftg1/s4uriK.pwn
     
    Cateva sisteme: - sistem de 10 vehicule personale
                              - sistem cu ticke rate-ul serverului ca in poza de mai jos
                              - sistem de licitatii (nu-i terminat)
                              - refacut sistemul de tradecar pentru noul sistem cu 10 vehicule personale,
                              - Adaugat sistem de NEWBIES: ~r~ sub bani care arata cate cereri de ajutor sunt.
                               - Adaugat raport automat pentru fiecare factiune.
                        - Altele care le veti descoperi voi. ;)
     
    P.S: La panel nu se adauga /panel la sfarsit, ci trebuie sa inepa cu panel.domeniul vostru

     

×
×
  • 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.