Jump to content

FeVosFeR

Membru
  • Posts

    50
  • Joined

  • Last visited

Posts posted by FeVosFeR

  1. 26 minutes ago, [El.Capo] said:

    Nu stiu ce ar putea fi incearca astea:

     

    case DIALOG_NEWPASS: {
        if(!response) return 1;

        if(strcmp(inputtext, PlayerInfo[playerid][pKey])) return SCM(playerid, COLOR_RED2, "Parola invalida!");

        ShowPlayerDialog(playerid, DIALOG_NEWPASS1,DIALOG_STYLE_INPUT, "SERVER: Change Password","Type your NEW password bellow!","Done","Close");
    }

    case DIALOG_NEWPASS1: {
        if(response)
        {
            new length = strlen(inputtext);
            if(length == 0 || length > 15) {
                SendClientMessage(playerid, COLOR_WHITE, "Please enter another password (maximum 15 characters).");
                ShowPlayerDialog(playerid, DIALOG_NEWPASS1,DIALOG_STYLE_INPUT, "SERVER: Change Password", "Type your NEW password bellow!","Done","Close");
                return 1;
            }
            if(length > 1 || length < 16) {
                new tmppass[64],namee[30], strings[300];
                mysql_real_escape_string(inputtext, tmppass);
                format(PlayerInfo[playerid][pKey], 50, tmppass);
                mysql_format(SQL, strings, sizeof(strings), "UPDATE users SET `password`='%s' WHERE `name`='%s'",PlayerInfo[playerid][pKey], PlayerInfo[playerid][pNormalName]);
                mysql_tquery(SQL,strings,"","");
                GetPlayerName(playerid, namee, sizeof(namee));
                format(strings,sizeof(strings),"%s[user:%d] changed his password.",namee,PlayerInfo[playerid][pSQLID]);
                ABroadCast(COLOR_YELLOW, strings,1);
                SendClientMessage(playerid, COLOR_GREEN3, "Daca dai parola contului altcuiva, adminii nu te pot ajuta sa-ti recuperezi contul.");
                SendClientMessage(playerid, COLOR_GREEN3, "E interzis sa incerci sa vinzi sau sa oferi la schimb contul din joc. Se sanctioneaza cu ban permanent.");
                SendClientMessage(playerid, COLOR_YELLOW, "Password changed!");
                format(strings,sizeof(strings),"Your new password is: {008080}%s.",tmppass);
                SendClientMessage(playerid, COLOR_WHITE,strings);
                return 1;
            }
            else return ShowPlayerDialog(playerid, DIALOG_NEWPASS1,DIALOG_STYLE_INPUT, "SERVER: Change Password", "Type your NEW password bellow!","Done","Close");
        }
        return 1;
    }

    A functionat. Mersi mult!

    Ai +1.

    Cer T/C.

  2. 45 minutes ago, adv1337 said:

    Salut, la comanda /goto si /gethere vreau ca player-ul sa intre in masina automat, nu langa masina.
    Comanda /goto:https://pastebin.com/qHAX04z9
    Comanda /gethere:https://pastebin.com/tQP4yZPN
    Multumesc Anticipat!

    Poftim. Poti locui cum ai tu in Gamemode anumite culori, functii, texte, etc.

    goto

    Spoiler

    YCMD:goto(playerid, params[], help) {
        if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "Nu esti logat!");
        if(PlayerInfo[playerid][pAdmin] >= 1)
        {
            new id,string[256],sendername[30],giveplayer[30],countx;
            if(sscanf(params, "u", id)) return SendClientMessage(playerid, 0xFFFFFFFF, "{AB0000}Usage: {FFFFFF}/goto <name/playerid>");
            {
                if(id != INVALID_PLAYER_ID) {
                    if(id == playerid) return SendClientMessage(playerid, COLOR_GREY, "Nu poti folosi aceasta comanda asupra ta.");
                    if(CanSpectate[id] == 1) return SendClientMessage(playerid, COLOR_GREY, "Nu poti folosi aceasta comanda pe acest jucator.");
                    if(Spectate[id] != -1) return SendClientMessage(playerid, COLOR_GREY, "That player is on spectating someone else.");
                    new Float:ax,Float:ay,Float:az;
                    GetPlayerPos(playerid,ax,ay,az);
                    posxxx[playerid] = ax;
                    posyyy[playerid] = ay;
                    poszzz[playerid] = az;
                    new Float:x, Float:y, Float:z;
                    GetPlayerPos(id, x, y, z);
                    new tmpcar = GetPlayerVehicleID(playerid), tmpcar2 = GetPlayerVehicleID(id);
                    if (GetPlayerState(playerid) == 2) {
                        SetVehiclePos(tmpcar, x, y+4, z);
                        GetVehiclePos(tmpcar, old_veh_pos[tmpcar][0], old_veh_pos[tmpcar][1], old_veh_pos[tmpcar][2]);
                        LinkVehicleToInterior(tmpcar, GetPlayerInterior(id));
                        SetVehicleVirtualWorld(tmpcar, GetPlayerVirtualWorld(id));
                        OnPlayerGoto(playerid, GetPlayerInterior(id), GetPlayerVirtualWorld(id));
                    }
                    else
                    {
                        if(GetPlayerState(id) == 2 || GetPlayerState(id) == 3)
                        {
                            new model = GetVehicleModel(GetPlayerVehicleID(id));
                            if(MaxSeats[model - 400] > 0)
                            {
                                for(new xx; xx < MaxSeats[model - 400]; xx++)
                                {
                                    if(!IsSeatTaken(tmpcar2, xx))
                                    {
                                        PutPlayerInVehicleEx(playerid, tmpcar2, xx);
                                        countx++;
                                        break;
                                    }
                                }
                            }
                            else SetPlayerPosEx(playerid,x,y+2, z);
                        }
                        else SetPlayerPosEx(playerid,x,y+2, z);
                        if(countx == 0) SetPlayerPosEx(playerid,x,y+2, z);
                    }
                    SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(id));
                    SetPlayerInterior(playerid, GetPlayerInterior(id));
                    if(InHouse[id] > 0) {
                        InHouse[playerid] = InHouse[id];
                        if(strlen(housestring[InHouse[playerid]]) > 0)
                        {
                            StopAudioStreamForPlayer(playerid);
                            PlayAudioStreamForPlayer(playerid, housestring[InHouse[playerid]]);
                        }
                    }
                    if(InHQ[id] > 0) InHQ[playerid] = InHQ[id];
                    if(InBussines[id] > 0) InBussines[playerid] = InBussines[id];
                    GetPlayerName(playerid,sendername,sizeof(sendername));
                    GetPlayerName(id,giveplayer,sizeof(giveplayer));
                    format(string,sizeof(string),"You have been teleported to %s.",giveplayer);
                    SendClientMessage(playerid, COLOR_GRAD1, string);
                    format(string,sizeof(string),"Admin %s teleported to you.",sendername);
                    SendClientMessage(id, COLOR_GRAD1, string);
                }
                else return SendClientMessage(playerid, COLOR_GREY, "Player not connected.");
            }
        }
        else
        {
            SendClientMessage(playerid, COLOR_LIGHTGREEN3, AdminOnly);
        }
        return 1;
    }

    gethere

    Spoiler

    YCMD:gethere(playerid, params[], help) {
        if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "Nu esti logat!");
        if(IsPlayerConnected(playerid))
        {
            if(PlayerInfo[playerid][pAdmin] >= 1)
            {
                new plo,sendername[30],giveplayer[30],string[256];
                if(sscanf(params, "u",plo)) return SendClientMessage(playerid, 0xFFFFFFFF, "{AB0000}Usage: {FFFFFF}/gethere <name/playerid>");
                new Float:plocx,Float:plocy,Float:plocz;
                if (IsPlayerConnected(plo)) {
                    if(plo != INVALID_PLAYER_ID) {
                        if(plo == playerid) return SendClientMessage(playerid, COLOR_GREY, "Nu poti folosi aceasta comanda asupra ta.");
                        if(CanSpectate[plo] == 1) return SendClientMessage(playerid, COLOR_GREY, "Nu poti folosi aceasta comanda pe acest jucator.");
                        if(Spectate[plo] != -1) return SendClientMessage(playerid, COLOR_GREY, "That player is on spectating someone else.");
                        if(PlayerInfo[plo][pAdmin] >= 6 && PlayerInfo[playerid][pAdmin] < 6) return SendClientMessage(playerid, COLOR_GREY, "Nu poti folosi aceasta comanda pe adminii de level 6+.");
                        GetPlayerPos(playerid, plocx, plocy, plocz);
                        SetPlayerInterior(plo,GetPlayerInterior(playerid));
                        PlayerInfo[plo][pInt] = PlayerInfo[playerid][pInt];
                        PlayerInfo[plo][pLocal] = PlayerInfo[playerid][pLocal];
                        if (GetPlayerState(plo) == 2)
                        {
                            TelePos[plo][0] = 0.0;
                            TelePos[plo][1] = 0.0;
                            new tmpcar = GetPlayerVehicleID(plo);
                            SetVehiclePos(tmpcar, plocx, plocy+4, plocz);
                            GetVehiclePos(tmpcar, old_veh_pos[tmpcar][0], old_veh_pos[tmpcar][1], old_veh_pos[tmpcar][2]);
                        }
                        else
                        {
                            SetPlayerPosEx(plo,plocx,plocy+2, plocz);
                        }
                        if(InHouse[playerid] > 0)
                        {
                            InHouse[plo] = InHouse[playerid];
                            if(strlen(housestring[InHouse[plo]]) > 0) {
                                StopAudioStreamForPlayer(plo);
                                PlayAudioStreamForPlayer(plo, housestring[InHouse[plo]]);
                            }
                        }
                        if(InHQ[playerid] > 0)
                        {
                            InHQ[plo] = InHQ[playerid];
                        }
                        if(InBussines[playerid] > 0)
                        {
                            InBussines[plo] = InBussines[playerid];
                        }
                        SetPlayerVirtualWorld(plo, GetPlayerVirtualWorld(playerid));
                        GetPlayerName(playerid, sendername, sizeof(sendername));
                        GetPlayerName(plo, giveplayer, sizeof(giveplayer));
                        format(string,sizeof(string),"You have teleported %s to you.",giveplayer);
                        SendClientMessage(playerid, COLOR_GRAD1, string);
                        format(string,sizeof(string),"You have been teleported by admin %s.",sendername);
                        SendClientMessage(plo, COLOR_GRAD1, string);
                        if(PlayerInfo[plo][pPaintBallG] > 0)
                        {
                            foreach(new i : Player) {
                                if(PlayerInfo[pPaintBallG] == PlayerInfo[plo][pPaintBallG] && i != plo)
                                {
                                    format(string,sizeof(string),"%s has left the paintball arena.", giveplayer);
                                    SendClientMessage(i, COLOR_YELLOW, string);
                                }
                            }
                            curatj[plo] = 0;
                            for (new i = 0; i != 5; ++i) SendDeathMessageToPlayer(plo, 1001, 1001, 1001);
                            PlayerTextDrawHide(plo, PaintBallText[plo]);
                            SetPlayerSkin(plo, PlayerInfo[plo][pModel]);
                            paintp[PlayerInfo[plo][pPaintBallG]]--;
                            PlayerInfo[plo][pPaintBallG] = 0;
                            PlayerInfo[plo][pPaintBallKills] = 0;
                            PlayerInfo[plo][pPaintBallVoted] = 0;
                            PlayerInfo[plo][pPaintBallVoted2] = 0;
                            ResetPlayerWeaponsEx(plo);
                            ResetPlayerWeapons(plo);
                            SetPlayerArmourEx(plo, 0);
                            SetPlayerToTeamColor(plo);
                            SetPlayerWorldBounds(plo, 20000.0000, -20000.0000, 20000.0000, -20000.0000);
                        }
                    }
                }
                else return SendClientMessage(playerid, COLOR_GREY, "Player not connected.");
            }
            else return SendClientMessage(playerid, COLOR_LIGHTGREEN3, AdminOnly);
        }
        return 1;
    }

     

  3. 21 hours ago, [El.Capo] said:

    arata dialogu' DIALOG_NEWPASS1

    Poftim.

    Spoiler

            case DIALOG_NEWPASS1: {
                if(response)
                {
                     new length = strlen(inputtext);
                    if(length == 0 || length > 15) {
                        SendClientMessage(playerid, COLOR_WHITE, "Please enter another password (maximum 15 characters).");
                        ShowPlayerDialog(playerid, DIALOG_NEWPASS1,DIALOG_STYLE_INPUT, "SERVER: Change Password", "Type your NEW password bellow!","Done","Close");
                        return 1;
                    }
                    if(strlen(inputtext) > 1 && strlen(inputtext) < 16) {
                        new tmppass[64],namee[30], strings[300];
                        mysql_real_escape_string(inputtext, tmppass);
                        format(PlayerInfo[playerid][pKey], 50, tmppass);
                        mysql_format(SQL, strings, sizeof(strings), "UPDATE users SET `password`='%s' WHERE `name`='%s'",PlayerInfo[playerid][pKey], PlayerInfo[playerid][pNormalName]);
                        mysql_tquery(SQL,strings,"","");
                        GetPlayerName(playerid, namee, sizeof(namee));
                        format(strings,sizeof(strings),"%s[user:%d] changed his password.",namee,PlayerInfo[playerid][pSQLID]);
                        ABroadCast(COLOR_YELLOW, strings,1);
                        SendClientMessage(playerid, COLOR_GREEN3, "Daca dai parola contului altcuiva, adminii nu te pot ajuta sa-ti recuperezi contul.");
                        SendClientMessage(playerid, COLOR_GREEN3, "E interzis sa incerci sa vinzi sau sa oferi la schimb contul din joc. Se sanctioneaza cu ban permanent.");
                        SendClientMessage(playerid, COLOR_YELLOW, "Password changed!");
                        format(strings,sizeof(strings),"Your new password is: {008080}%s.",tmppass);
                        SendClientMessage(playerid, COLOR_WHITE,strings);
                        return 1;
                    }
                    else
                    {
                        ShowPlayerDialog(playerid, DIALOG_NEWPASS1,DIALOG_STYLE_INPUT, "SERVER: Change Password", "Type your NEW password bellow!","Done","Close");
                        return 1;
                    }
                }
                return 1;
            }

     

    • Upvote 1
  4. Salut! Am urmatorul cod:

    Spoiler

            case DIALOG_NEWPASS: {
                if(!response) return 1;
                if(strcmp(MD5(inputtext), PlayerInfo[playerid][pKey]))
                {
                    SCM(playerid, COLOR_RED2, "Parola invalida!");
                    return 1;
                }
                ShowPlayerDialog(playerid, DIALOG_NEWPASS1,DIALOG_STYLE_INPUT, "SERVER: Change Password","Type your NEW password bellow!","Done","Close");
            }

    As vrea sa scot MD5 pentru a nu se mai cripta parolele dar cand scot doar cuvantul 'MD5' de acolo si dau restart la server, cand intru pe server si scriu /changepass si imi pun parola curenta, pica serverul. Ma puteti ajuta cumva?

  5. Salut! Am comanda [/pa]:

    Spoiler

    CMD:pa(playerid,params[])
    {
        if(PlayerChatActiv == 1)
        {
            if (PlayerInfo[playerid][pAdmin] > 0 || PlayerInfo[playerid][pAdmin] <= 0 || PlayerInfo[playerid][pLeader] >= 1)
            {
                new string[250],result[250],sendername[25];
                if(sscanf(params, "s[250]",result)) return SendClientMessage(playerid, COLOR_WHITE, "{FF9900}Scrie: {33CCFF}/pa <Message>");
                   GetPlayerName(playerid, sendername, sizeof(sendername));
                {
                       new estegrad[MAX_STRING];
                       if(PlayerInfo[playerid][pAdmin] <= 0) estegrad = "Civil";
                       if(PlayerInfo[playerid][pLeader] >= 1) estegrad = "Leader";
                    if(PlayerInfo[playerid][pAdmin] == 1) estegrad = "Admin";
                    if(PlayerInfo[playerid][pAdmin] == 2) estegrad = "Admin";
                    if(PlayerInfo[playerid][pAdmin] == 3) estegrad = "Admin";
                    if(PlayerInfo[playerid][pAdmin] == 4) estegrad = "Admin";
                    if(PlayerInfo[playerid][pAdmin] == 5) estegrad = "Admin";
                     if(PlayerInfo[playerid][pAdmin] == 6) estegrad = "{FFFF00}Supervizor";
                     if(PlayerInfo[playerid][pAdmin] == 7) estegrad = "{FF0000}Fondator";
                     if(PlayerInfo[playerid][pAdmin] == ? estegrad = "{33FFFF}Fondator{FFFFFF} & {990033}Scripter{FF0000}";
                    format(string, sizeof(string), "[/pa]: %s %s: %s",estegrad , sendername, result);
                }
                APlayerCast(COLOR_BLUE, string,1);
            }

        }
        else return SendClientMessage(playerid, COLOR_WHITE, "Aceasta comanda a fost dezactivata temporar de catre un administrator.");
        return 1;
    }

    Cum i-as putea adauga deelay? Gen un player sa poata scrie pe [/pa] o data la 5 secunde.

  6. 46 minutes ago, Flaviu11 said:

    Cauta public-ul EstiFondator in gamemode, sterge-l pentru a evita o eventuala greseala si inlocuieste-l cu acesta.

    
    public EstiFondator(playerid)
    {
    	if(IsPlayerConnected(playerid))
    	{
    		new nume[512];
            GetPlayerName(playerid, nume, sizeof(nume));
            if((strcmp(nume, "Xilescu", true) == 0))
            {
    		    return 1;
    		}
    	}
    	return 0;
    }

     

    Pe langa EstiFondator si Admin 7 sa fie Xilescu. Ceva cu strid parca sau user.

  7. Salut! Am comanda [/makeadmin]:

    Spoiler

    CMD:makeadmin(playerid, params[])
    {
        if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first.");
        if(PinLogged[playerid] == 0) return SCM(playerid, COLOR_BLUELIGHT, "Trebuie sa introduci codul pin mai intai folosind comanda [/pin] sau sa setezi unul folosind comanda [/setpin].");
        if(IsPlayerConnected(playerid))
        {
             if(PlayerInfo[playerid][pAdmin] >= 7 || EstiFondator(playerid))
            {

    Cum as putea ca, aceasta comanda sa fie utilizata de jucatorul cu numele 'Xilescu'?

  8. 2 minutes ago, LucaAdv. said:

    ai mentenanta.php sau cv de genu, sterge-o si iti merge !

    Nu, in config.class este asta: 

    	private function __construct() {
    		$db['mysql'] = array(
    			'host' 		=>	'localhost',
    			'username' 	=> 	'root',
    			'dbname' 	=> 	'bigzoneultimate',
    			'password' 	=> 	''
    		);
    
    		try {
    			self::$g_con = new PDO('mysql:host='.$db['mysql']['host'].';dbname='.$db['mysql']['dbname'].';charset=utf8',$db['mysql']['username'],$db['mysql']['password']);
    			self::$g_con->setAttribute(PDO::ATTR_EMULATE_PREPARES, false);
    			self::$g_con->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
    		} catch (PDOException $e) {
    			@file_put_contents('error_log',@file_get_contents('error_log') . $e->getMessage() . "\n");
    			die('<div class="alert alert-danger"><br />Avem o problema tehnica. Revenim in cel mai scurt timp posibil.</div>');
    		}
    		self::_getUrl();
    		self::arrays();
    	}

     

  9. Salut! Am luat si eu panelul BigZone 1.21: 

    Am conectat la baza de date si imi da eroare cand intru pe site: 'Avem o problema tehnica. Revenim in cel mai scurt timp posibil.

    De ex: La host am:

    Server/Host: 127.0.0.1

    Username: server_1234

    Database name: server_1234_da

    Parola: 1234567890

    La panel am adaugat: 

                'host'         =>    '127.0.0.1',
                'username'     =>     'server_1234',
                'dbname'     =>     'server_1234_da',
                'password'     =>     '1234567890'

    Ce este gresit de imi da acea eroare?

     

     

  10. Salut! Am facut comanda [/gotohq] si imi da erori...

    Spoiler

    CMD:gotohq(playerid, params[])
    {
        if(PlayerInfo[playerid][pAdmin] >= 1)
        if(PinLogged[playerid] == 0)return SCM(playerid, COLOR_DARKNICERED,"{FFFFFF}{FFFFFF}Contul tau este {ff0000}blocat{ffffff}, foloseste {ff0000}/pin{ffffff} pentru a-l debloca..");
        new chose[28], item;
        if(sscanf(params,"s",chose))return SendClientMessage(playerid,COLOR_GREY,"{FF9900}Scrie: {33CCFF}/gotohq <HQ ID>");
        {
            if(strcmp(item,"1",true) == 0)
            {
                SetPlayerVirtualWorld(playerid, 0);
                SetPlayerInterior(playerid, 0);
                SetPlayerPos(playerid, 1554.7621, -1675.5870, 16.1953);
            }
            else if(strcmp(item,"2",true) == 0)
            {
                SetPlayerVirtualWorld(playerid, 0);
                SetPlayerInterior(playerid, 0);
                SetPlayerPos(playerid, 627.6160, -571.7920, 17.6242);
            }
            else if(strcmp(item,"3",true) == 0)
            {
                 SetPlayerVirtualWorld(playerid, 0);
                 SetPlayerInterior(playerid, 0);
                 SetPlayerPos(playerid, 1654.0095, -1654.7570, 22.5156);
            }
            else if(strcmp(item,"4",true) == 0)
            {
                 SetPlayerVirtualWorld(playerid, 0);
                 SetPlayerInterior(playerid, 0);
                 SetPlayerPos(playerid, 1456.7423, 2773.3423, 10.8203);
            }
            else if(strcmp(item,"5",true) == 0)
            {
                 SetPlayerVirtualWorld(playerid, 0);
                 SetPlayerInterior(playerid, 0);
                 SetPlayerPos(playerid, 2495.3271, -1690.6740, 14.7656);
            }
            else if(strcmp(item,"6",true) == 0)
            {
                  SetPlayerVirtualWorld(playerid, 0);
                  SetPlayerInterior(playerid, 0);
                  SetPlayerPos(playerid, 725.6769, -1440.4506, 13.5391);
            }
            else if(strcmp(item,"8",true) == 0)
            {
                  SetPlayerVirtualWorld(playerid, 0);
                  SetPlayerInterior(playerid, 0);
                  SetPlayerPos(playerid, 2287.1047, 2431.7996, 10.8203);
            }
            else if(strcmp(item,"9",true) == 0)
            {
                  SetPlayerVirtualWorld(playerid, 0);
                  SetPlayerInterior(playerid, 0);
                  SetPlayerPos(playerid, -329.5258, 1536.7759, 76.6117);
            }
            else if(strcmp(item,"10",true) == 0)
            {
                  SetPlayerVirtualWorld(playerid, 0);
                  SetPlayerInterior(playerid, 0);
                  SetPlayerPos(playerid, 1455.2687, 750.8684, 11.0234);
            }
            else if(strcmp(item,"11",true) == 0)
            {
                   SetPlayerVirtualWorld(playerid, 0);
                   SetPlayerInterior(playerid, 0);
                   SetPlayerPos(playerid, 1081.1794, -345.3979, 73.9825);
            }
            else if(strcmp(item,"12",true) == 0)
            {
                   SetPlayerVirtualWorld(playerid, 0);
                   SetPlayerInterior(playerid, 0);
                   SetPlayerPos(playerid, 2435.3064, 1671.0139, 10.8203);
            }
            else if(strcmp(item,"13",true) == 0)
            {
                   SetPlayerVirtualWorld(playerid, 0);
                   SetPlayerInterior(playerid, 0);
                   SetPlayerPos(playerid, 1754.4260, -1894.0844, 13.5569);
            }
            else if(strcmp(item,"14",true) == 0)
            {
                   SetPlayerVirtualWorld(playerid, 0);
                   SetPlayerInterior(playerid, 0);
                   SetPlayerPos(playerid, 1614.92480, 1816.09631, 10.91310);
            }
        }
        else return SendClientMessage(playerid, COLOR_GREY, "Nu esti autorizat sa folosesti aceasta comanda.");
    }

    Imi da eroare la fiecare "else if(strcmp(item,"xx",true) == 0)". Help me va rog

    (xxxxx) : error 035: argument type mismatch (argument 1)

  11. Salut! Cum as putea face un sistem, cum au cei de la OG-Times cu OG-CODE. Gen cand dau /code scriu codul care este salvat in baza de date ai imi da premiul care l-am setat din baza de date. Sau daca este implementat intr-un GM imi puteti da link-ul pentru a "fura" sistemul? :))) Mi se pare foarte interesant.Multumesc anticipat.

  12. 2 hours ago, Banditul said:

    Singura problema pe care o vad cu codul tau e  la case 0 de la DIALOG_GO care e posibil sa intre in 

    
    error 075: input line too long (after substitutions)

    Desi nu vad de ce ti-ar da crash

    O solutie ar fi sa folosesti acest compilator  pentru ca are multe buguri rezolvate: https://github.com/pawn-lang/compiler/releases/download/v3.10.8/pawnc-3.10.8-windows.zip bagi cele 3 fisiere in folderul pawno

    pawn.cfg

    Si pawn.cfg tot in folderul pawno

    Acum cand dau ''Compile'' da eroare la fiecare linie de pe GameMode =]]]

    Nici marimea nu e de vina...

  13. On 12/29/2018 at 9:17 PM, Andronache said:

    Salutare! Am o problema cu pickupurile de la case. Nu mi se mai salveaza si n-am umblat la case deloc. De cand am dat primul restart la server, nu se mai salveaza pickupurile. Cineva mi-a spus ca e de la mapping, dar nu cred ca e de acolo. Putin ajutor?

    Problema asta am avut-o si eu la gamemode-ul 'BigZone' dupa ce am pus alte versiuni de includeuri. Incearca sa le pui pe cele default. Gen cele cu care ai luat gamemodeul.

  14. Am:

    Spoiler

    CMD:go(playerid, params[])
    {
        if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to log in first.");
        if(PlayerInfo[playerid][pAdmin] > 0)
        {
            new name[30];
            ShowPlayerDialog(playerid, DIALOG_GO, DIALOG_STYLE_LIST, "SERVER: Teleport Locations", "HQ Locations\nHouse Interiors\nRace Tracks\nPopular Locations\nGym Interiors\nOther", "Select", "Cancel");
            GetPlayerName(playerid, name, sizeof(name));
        }
        return 1;
    }

    si

    Spoiler

        if(dialogid == DIALOG_GO)
        {
            if(response)
            {
                switch(listitem)
                {
                    case 0: ShowPlayerDialog(playerid, DIALOG_GO3, DIALOG_STYLE_LIST, "SERVER: HQ Locations", "Los Santos Police Departament\nFederal Bureau Of Investigation\nNational Guard\nLos Aztecas\nGrove Street\nLos Vagos\nLas Venturas Police Departament\nNews Reporters\nBallas\nHitman Agency\nSchool Instructors\nTaxi Los Santos\nParamedic Las Venturas", "Select", "Cancel");
                    case 1: ShowPlayerDialog(playerid, DIALOG_GO2, DIALOG_STYLE_LIST, "SERVER: Race Tracks", "Dirt Track\nVice Stadium\nBloodbowl Stadium\n8-Track Stadium\nKickstart Stadium", "Select", "Cancel");
                    case 2: ShowPlayerDialog(playerid, DIALOG_GO1, DIALOG_STYLE_LIST, "SERVER: House Interiors", "Madd Doggs'\nCJ's House\nRyder's House\nTiger Skin Brothel\nColonel Fuhrberger's\nCrack Den\nDenise's Room\nKatie's Room", "Select", "Cancel");
                    case 3: ShowPlayerDialog(playerid, DIALOG_GO4, DIALOG_STYLE_LIST, "SERVER: Popular Locations", "Bank (exterior)\nGym (exterior)\nAll Saints Hospital\nCounty General Hospital\nNewbie Spawn\n", "Select", "Cancel");
                    case 4: ShowPlayerDialog(playerid, DIALOG_GO6, DIALOG_STYLE_LIST, "SERVER: Gym Interiors", "Ganton Gym (LS)\nCobra Martial Arts (SF)\nBelow the Belt Gym (LV)", "Select", "Cancel");
                    case 5: ShowPlayerDialog(playerid, DIALOG_GO5, DIALOG_STYLE_LIST, "SERVER: Other Locations", "RC Battlefield\nArea 69\nWarehouse 1\nWarehouse 2\nMeat Factory\nSherman Dam\n", "Select", "Cancel");
                }
            }
            return 1;
        }
        if(dialogid == DIALOG_GO1)
        {
            if(response)
            {
                switch(listitem)
                {
                    case 0: {
                        SetPlayerVirtualWorld(playerid, 0);
                        SetPlayerInterior(playerid, 5);
                        SetPlayerPos(playerid, 1267.663208, -781.323242, 1091.906250);
                    }
                    case 1: {
                        SetPlayerVirtualWorld(playerid, 0);
                        SetPlayerInterior(playerid, 3);
                        SetPlayerPos(playerid, 2496.049804, -1695.238159, 1014.742187);
                    }
                    case 2: {
                        SetPlayerVirtualWorld(playerid, 0);
                        SetPlayerInterior(playerid, 2);
                        SetPlayerPos(playerid, 2454.717041, -1700.871582, 1013.515197);
                    }
                    case 3: {
                        SetPlayerVirtualWorld(playerid, 0);
                        SetPlayerInterior(playerid, 3);
                        SetPlayerPos(playerid, 964.106994, -53.205497, 1001.124572);
                    }
                    case 4: {
                        SetPlayerVirtualWorld(playerid, 0);
                        SetPlayerInterior(playerid, 8);
                        SetPlayerPos(playerid, 2807.619873, -1171.899902, 1025.570312);
                    }
                    case 5: {
                        SetPlayerVirtualWorld(playerid, 0);
                        SetPlayerInterior(playerid, 5);
                        SetPlayerPos(playerid, 318.564971, 1118.209960, 1083.882812);
                    }
                    case 6: {
                        SetPlayerVirtualWorld(playerid, 0);
                        SetPlayerInterior(playerid, 1);
                        SetPlayerPos(playerid, 244.411987, 305.032989, 999.148437);
                    }
                    case 7: {
                        SetPlayerVirtualWorld(playerid, 0);
                        SetPlayerInterior(playerid, 2);
                        SetPlayerPos(playerid, 271.884979, 306.631988, 999.148437);
                    }
                }
            }
        }
        if(dialogid == DIALOG_GO2)
        {
            if(response)
            {
                switch(listitem)
                {
                    case 0: {
                        SetPlayerVirtualWorld(playerid, 0);
                        SetPlayerInterior(playerid, 4);
                        SetPlayerPos(playerid, -1444.645507, -664.526000, 1053.572998);
                    }
                    case 1: {
                        SetPlayerVirtualWorld(playerid, 0);
                        SetPlayerInterior(playerid, 1);
                        SetPlayerPos(playerid, -1401.829956, 107.051300, 1032.273437);
                    }
                    case 2: {
                        SetPlayerVirtualWorld(playerid, 0);
                        SetPlayerInterior(playerid, 15);
                        SetPlayerPos(playerid, -1398.103515, 937.631164, 1036.479125);
                    }
                    case 3: {
                        SetPlayerVirtualWorld(playerid, 0);
                        SetPlayerInterior(playerid, 7);
                        SetPlayerPos(playerid, -1398.065307, -217.028900, 1051.115844);
                    }
                    case 4: {
                        SetPlayerVirtualWorld(playerid, 0);
                        SetPlayerInterior(playerid, 14);
                        SetPlayerPos(playerid, -1465.268676, 1557.868286, 1052.531250);
                    }
                }
            }
        }
        if(dialogid == DIALOG_GO3)
        {
            if(response)
            {
                switch(listitem)
                {
                    case 0: {
                        SetPlayerVirtualWorld(playerid, 0);
                        SetPlayerInterior(playerid, 0);
                        SetPlayerPos(playerid, 1554.7621, -1675.5870, 16.1953);
                    }
                    case 1: {
                        SetPlayerVirtualWorld(playerid, 0);
                        SetPlayerInterior(playerid, 0);
                        SetPlayerPos(playerid, 627.6160, -571.7920, 17.6242);
                    }
                    case 2: {
                        SetPlayerVirtualWorld(playerid, 0);
                        SetPlayerInterior(playerid, 0);
                        SetPlayerPos(playerid, 1654.0095, -1654.7570, 22.5156);
                    }
                    case 3: {
                        SetPlayerVirtualWorld(playerid, 0);
                        SetPlayerInterior(playerid, 0);
                        SetPlayerPos(playerid, 1456.7423, 2773.3423, 10.8203);
                    }
                    case 4: {
                        SetPlayerVirtualWorld(playerid, 0);
                        SetPlayerInterior(playerid, 0);
                        SetPlayerPos(playerid, 2495.3271, -1690.6740, 14.7656);
                    }
                    case 5: {
                        SetPlayerVirtualWorld(playerid, 0);
                        SetPlayerInterior(playerid, 0);
                        SetPlayerPos(playerid, 725.6769, -1440.4506, 13.5391);
                    }
                    case 6: {
                        SetPlayerVirtualWorld(playerid, 0);
                        SetPlayerInterior(playerid, 0);
                        SetPlayerPos(playerid, 2287.1047, 2431.7996, 10.8203);
                    }
                    case 7; {
                        SetPlayerVirtualWorld(playerid, 0);
                        SetPlayerInterior(playerid, 0);
                        SetPlayerPos(playerid, -329.5258, 1536.7759, 76.6117);
                    }
                    case 8: {
                        SetPlayerVirtualWorld(playerid, 0);
                        SetPlayerInterior(playerid, 0);
                        SetPlayerPos(playerid, 1455.2687, 750.8684, 11.0234);
                    }
                    case 9: {
                        SetPlayerVirtualWorld(playerid, 0);
                        SetPlayerInterior(playerid, 0);
                        SetPlayerPos(playerid, 1081.1794, -345.3979, 73.9825);
                    }
                    case 10: {
                        SetPlayerVirtualWorld(playerid, 0);
                        SetPlayerInterior(playerid, 0);
                        SetPlayerPos(playerid, 2435.3064, 1671.0139, 10.8203);
                    }
                    case 11: {
                        SetPlayerVirtualWorld(playerid, 0);
                        SetPlayerInterior(playerid, 0);
                        SetPlayerPos(playerid, 1754.4260, -1894.0844, 13.5569);
                    }
                    case 12: {
                        SetPlayerVirtualWorld(playerid, 0);
                        SetPlayerInterior(playerid, 0);
                        SetPlayerPos(playerid, 1614.92480, 1816.09631, 10.91310);
                    }
                }
            }
        }
        if(dialogid == DIALOG_GO4)
        {
            if(response)
            {
                switch(listitem)
                {
                    case 0: {
                        SetPlayerVirtualWorld(playerid, 0);
                        SetPlayerInterior(playerid, 0);
                        SetPlayerPos(playerid, 595.5443,-1250.3405,18.2836);
                    }
                    case 1: {
                        SetPlayerVirtualWorld(playerid, 0);
                        SetPlayerInterior(playerid, 0);
                        SetPlayerPos(playerid, 2222.6714, -1724.8436, 13.5625);
                    }
                    case 2: {
                        SetPlayerVirtualWorld(playerid, 0);
                        SetPlayerInterior(playerid, 0);
                        SetPlayerPos(playerid, 1172.359985, -1323.313110, 15.402919);
                    }
                    case 3: {
                        SetPlayerVirtualWorld(playerid, 0);
                        SetPlayerInterior(playerid, 0);
                        SetPlayerPos(playerid, 2034.196166, -1402.591430, 17.295030);
                    }
                    case 4: {
                        SetPlayerVirtualWorld(playerid, 0);
                        SetPlayerInterior(playerid, 0);
                        SetPlayerPos(playerid, 738.9963, -1417.2211, 13.5234);
                    }
                }
            }
        }
        if(dialogid == DIALOG_GO5)
        {
            if(response)
            {
                switch(listitem)
                {
                    case 0: {
                           SetPlayerVirtualWorld(playerid, 0);
                        SetPlayerInterior(playerid, 10);
                        SetPlayerPos(playerid, -975.975708, 1060.983032, 1345.671875);
                    }
                    case 1: {
                           SetPlayerVirtualWorld(playerid, 0);
                        SetPlayerInterior(playerid, 0);
                        SetPlayerPos(playerid, 223.431976, 1872.400268, 13.734375);
                    }
                    case 2: {
                        SetPlayerVirtualWorld(playerid, 0);
                        SetPlayerInterior(playerid, 1);
                        SetPlayerPos(playerid, 1412.639892, -1.787510, 1000.924377);
                     }
                    case 3: {
                        SetPlayerVirtualWorld(playerid, 0);
                        SetPlayerInterior(playerid, 18);
                        SetPlayerPos(playerid, 1302.519897, -1.787510, 1001.028259);
                    }
                    case 4: {
                        SetPlayerVirtualWorld(playerid, 0);
                        SetPlayerInterior(playerid, 1);
                        SetPlayerPos(playerid, 963.418762, 2108.292480, 1011.030273);
                    }
                    case 5: {
                        SetPlayerVirtualWorld(playerid, 0);
                        SetPlayerInterior(playerid, 17);
                        SetPlayerPos(playerid, -959.564392, 1848.576782, 9.000000);
                    }
                }
            }
        }
        if(dialogid == DIALOG_GO6)
        {
            if(response)
            {
                switch(listitem)
                {
                    case 0: {
                        SetPlayerVirtualWorld(playerid, 0);
                        SetPlayerInterior(playerid, 5);
                        SetPlayerPos(playerid, 772.111999, -3.898649, 1000.728820);
                    }
                    case 1: {
                           SetPlayerVirtualWorld(playerid, 0);
                        SetPlayerInterior(playerid, 6);
                        SetPlayerPos(playerid, 774.213989, -48.924297, 1000.585937);
                    }
                    case 2: {
                        SetPlayerVirtualWorld(playerid, 0);
                        SetPlayerInterior(playerid, 7);
                        SetPlayerPos(playerid, 773.579956, -77.096694, 1000.655029);
                    }
                }
            }
        }

    Cand dau COMPILE imi da STOP WORKING pawno. Eu am modificat doar DIALOG_GO3 si am adaugat case-uri.

    HELP ME VA ROG! 

  15. Salut! Am un sistem de garaj. Intru in el tot cu masina (in Virtual World 1), ii dau [/park] si cand dau [/towcar] sau [/vre] masina respectiva are park in acel loc dar cu Virtual World 0. Cum as putea face ca sa nu se mai schimbe virtual world-ul in 0, ci sa ramana in virtual worldul in care a fost parcat? Multumesc anticipat

  16. Uite /agl

    Spoiler

    CMD:agl(playerid,params[])
    {
        if(PinLogged[playerid] == 0)return SCM(playerid, COLOR_DARKNICERED,"{FFFFFF}{FFFFFF}Contul tau este {ff0000}blocat{ffffff}, foloseste {ff0000}/pin{ffffff} pentru a-l debloca..");
        if(IsPlayerConnected(playerid))
        {
            if (PlayerInfo[playerid][pAdmin] >= 3)
            {
                new id,x_nr[10],sendername[25],giveplayer[25],string[128];
                if(sscanf(params, "us[10]",id,x_nr))
                {
                    SendClientMessage(playerid, COLOR_WHITE, "{FF9900}Scrie: {33CCFF}/agivelicense <Name/Playerid> <License>");
                    SendClientMessage(playerid, COLOR_WHITE, "Available names: Driving, Pilots, Boat, Weapon, ALL.");
                    return 1;
                }
                if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_WHITE, "{FFFFCC}Error: Player not connected.");
                GetPlayerName(playerid, sendername, sizeof(sendername));
                GetPlayerName(id, giveplayer, sizeof(giveplayer));
                if(strcmp(x_nr,"driving",true) == 0)
                {
                    format(string, sizeof(string), "* I-ai dat lui %s licenta de condus",giveplayer);
                    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
                    format(string, sizeof(string), "* Admin %s ti-a dat licenta de condus.",sendername);
                    SendClientMessage(id, COLOR_LIGHTBLUE, string);
                    PlayerInfo[id][pCarLic] = 1;
                    PlayerInfo[id][pCarLicT] = 100;
                    PlayerInfo[id][pCarLicSuspend] = 0;
                    Update(id, pCarLicSuspendx);
                    new str[128];
                    mysql_format(SQL,str,128,"UPDATE users SET `CarLic`='1',`CarLicT`='%s' WHERE `name`='%s'",PlayerInfo[id][pNormalName]);
                    mysql_tquery(SQL,str,"","");
                    return 1;
                }
                else if(strcmp(x_nr,"pilots",true) == 0)
                {
                    format(string, sizeof(string), "* I-ai dat lui %s licenta de pilotat.",giveplayer);
                    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
                    format(string, sizeof(string), "* Admin %s ti-a dat licenta de pilotat.",sendername);
                    SendClientMessage(id, COLOR_LIGHTBLUE, string);
                    PlayerInfo[id][pFlyLic] = 1;
                    PlayerInfo[id][pFlyLicT] = 100;
                    new str[128];
                    mysql_format(SQL,str,128,"UPDATE users SET `FlyLic`='1',`FlyLicT`='100' WHERE `name`='%s'",PlayerInfo[id][pNormalName]);
                    mysql_tquery(SQL,str,"","");
                    return 1;
                }
                else if(strcmp(x_nr,"boat",true) == 0)
                {
                    format(string, sizeof(string), "* I-ai dat lui %s licenta de navigat.",giveplayer);
                    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
                    format(string, sizeof(string), "* Admin %s ti-a dat licenta de navigat.",sendername);
                    SendClientMessage(id, COLOR_LIGHTBLUE, string);
                    PlayerInfo[id][pBoatLic] = 1;
                    PlayerInfo[id][pBoatLicT] = 100;
                    new str[128];
                    mysql_format(SQL,str,128,"UPDATE users SET `BoatLic`='1',`BoatLicT`='100' WHERE `name`='%s'",PlayerInfo[id][pNormalName]);
                    mysql_tquery(SQL,str,"","");
                    return 1;
                }
                else if(strcmp(x_nr,"weapon",true) == 0)
                {
                    format(string, sizeof(string), "* I-ai dat lui %s licenta de port-arma.",giveplayer);
                    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
                    format(string, sizeof(string), "* Admin %s ti-a dat licenta de port-arma.",sendername);
                    SendClientMessage(id, COLOR_LIGHTBLUE, string);
                    PlayerInfo[id][pGunLic] = 1;
                    PlayerInfo[id][pGunLicT] = 100;
                    PlayerInfo[id][pGunLicSuspend] = 0;
                    Update(id, pGunLicSuspendx);
                    new str[128];
                    mysql_format(SQL,str,128,"UPDATE users SET `GunLic`='1',`GunLicT`='100' WHERE `name`='%s'",PlayerInfo[id][pNormalName]);
                    mysql_tquery(SQL,str,"","");
                    return 1;
                }
                else if(strcmp(x_nr,"all",true) == 0)
                {
                    format(string, sizeof(string), "* I-ai dat lui %s toate licentele.",giveplayer);
                    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
                    format(string, sizeof(string), "* Admin %s ti-a dat toate licentele.",sendername);
                    SendClientMessage(id, COLOR_LIGHTBLUE, string);
                    PlayerInfo[id][pGunLic] = 1;
                    PlayerInfo[id][pGunLicT] = 100;
                    PlayerInfo[id][pBoatLic] = 1;
                    PlayerInfo[id][pBoatLicT] = 100;
                    PlayerInfo[id][pFlyLic] = 1;
                    PlayerInfo[id][pFlyLicT] = 100;
                    PlayerInfo[id][pCarLic] = 1;
                    PlayerInfo[id][pCarLicT] = 100;
                    PlayerInfo[id][pGunLicSuspend] = 0;
                    PlayerInfo[id][pCarLicSuspend] = 0;
                    Update(id, pGunLicSuspendx);
                    Update(id, pCarLicSuspendx);
                    new str[128];
                    mysql_format(SQL,str,128,"UPDATE users SET `GunLic`='1',`GunLicT`='100',`BoatLic`='1',`BoatLicT`='100',`FlyLic`='1',`FlyLicT`='100',`CarLic`='1',`CarLicT`='100' WHERE `name`='%s'",PlayerInfo[id][pNormalName]);
                    mysql_tquery(SQL,str,"","");
                    return 1;
                }
            }
            
        }
        return 1;
    }

     

  17. On 11/27/2018 at 10:40 PM, Hunter said:

    Salut, as avea nevoie de putin ajutor, va rog daca ma puteti ajuta sa rezolv aceasta chestie... Factiunile: Taxi si School instructors, au aceasta problema, in interiorul HQ-ului lor, peretii si podelele dispar si se misca, nu stiu exact cum sa explic, dar sper sa intelegeti, cred ca rezolvarea ar fii sa schimb interiorul, dar nu stiu cum, va rog niste solutii mai explicite si amanuntite m-ar ajuta mult.

    Uitati cum arata:  https://imgur.com/a/c0h9TYx

    Este HQ-ul Taxi

    Incearca sa pui in loc de CreateDynamicObject, CreateObject

  18. Salut! Am un sistem de garaj. Intru in el tot cu masina (in Virtual World 1), ii dau [/park] si cand dau [/towcar] sau [/vre] masina respectiva are park in acel loc dar cu Virtual World 0. Cum as putea face ca sa nu se mai schimbe virtual world-ul in 0, ci sa ramana in virtual worldul in care a fost parcat? Multumesc anticipat.

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