Jump to content

Exaton

Membru
  • Posts

    287
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by Exaton

  1. Acum 16 minute, K1nG. a spus:

    din index.p.php, parca era, nu le am cu panel-urile.

     

    Acum 21 minute, K1nG. a spus:

    din index.p.php, parca era, nu le am cu panel-urile.

    am gasit da doar asta 

    <div class="page-content"><div class="row-fluid"><div class="span12">
    <div class="span8">

    <title><?php echo Config::$_SITE_NAME; ?> - User Panel</title>
     cu User Panel

  2. Salut am o problema la un panel nu gasesc de unde sa schimb UltraWhite RPG - User Panel ca la Confing.calss.php nu e si nu gasesec de unde si la Factions este langa 14 dar eu vreau sa pun 15 de unde pot sa schimb 

    poze:image.png.1b1b5b128ed0acce798b2abba0913475.png

  3. Acum 42 minute, Davidoff7776 a spus:

    Uite aici comanda:

    CMD:makeadmin(playerid, params[])
    {
        if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first.");
        if(IsPlayerConnected(playerid))
        {
            if (PlayerInfo[playerid][pAdmin] >= 6 || EstiFondator(playerid))
            {
                new id,adminlevel,sendername[30],giveplayer[30],string[200],escape[200];
                if(sscanf(params, "ui",id,adminlevel)) return SendClientMessage(playerid, 0xFFFFFFFF, "{FF9900}Scrie: {33CCFF}/makeadmin` <Name/Playerid> <Admin Level>");
                if(PlayerInfo[id][pAdmin] >= 6 && !EstiFondator(playerid)) return SendClientMessage(playerid, COLOR_WHITE, "Nu poti modifica admin level-ul unui admin 6+!.");
                if(adminlevel > 4 && !EstiFondator(playerid)) return SendClientMessage(playerid, COLOR_WHITE, "Only founders can make admin higher than 4.");
                if(IsPlayerConnected(id))
                {
                    if(id != INVALID_PLAYER_ID)
                    {
                        GetPlayerName(id, giveplayer, sizeof(giveplayer));
                        GetPlayerName(playerid, sendername, sizeof(sendername));
                        printf("AdmCmd: %s has promoted %s to a level %d admin.", sendername, giveplayer, adminlevel);
                        format(string, sizeof(string), "You've been promoted to level %d admin, by %s.", adminlevel, sendername);
                        SendClientMessage(id, COLOR_YELLOW, string);
                        format(string, sizeof(string), "You have promoted %s to a level %d admin.", giveplayer,adminlevel);
                        SendClientMessage(playerid, COLOR_YELLOW, string);
                        format(string, sizeof(string), "* Admin %s set %s's admin level to %d.", sendername,giveplayer,adminlevel);
                        ABroadCast(COLOR_ADMIN,string,1);
                        HLChat(COLOR_ADMCHAT,string);
                        mysql_real_escape_string(string, escape);
                        PlayerInfo[id][pAdmin] = adminlevel;
                        if(adminlevel == 0)
                        {
                            AdminDuty[id] = 0;
                        }
                        new str[256];
                        mysql_format(SQL,str,sizeof(str),"UPDATE users SET `Admin`='%d' WHERE `name`='%s'",PlayerInfo[id][pAdmin],PlayerInfo[id][pNormalName]);
                        mysql_tquery(SQL,str,"","");
                        mysql_format(SQL,str, sizeof(str), "INSERT INTO staff_logs (`text`) VALUES ('%s')", escape);
                        mysql_tquery(SQL,str,"","");
                    }
                }
                else
                {
                    SendClientMessage(playerid, COLOR_WHITE, "{FFFFCC}Error: Player not connected.");
                }
            }
            else
            {
                SendClientMessage(playerid, COLOR_ERROR, AdminOnly);
            }
        }
        return 1;
    }
     

    CMD:makeadmin(playerid, params[])
    {
        if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first.");
        if(IsPlayerConnected(playerid))
        {
            if (PlayerInfo[playerid][pAdmin] >= 6 || EstiFondator(playerid))
            {
                new id,adminlevel,sendername[30],giveplayer[30],string[200],escape[200];
                if(sscanf(params, "ui",id,adminlevel)) return SendClientMessage(playerid, 0xFFFFFFFF, "{FF9900}Scrie: {33CCFF}/makeadmin` <Name/Playerid> <Admin Level>");
                if(PlayerInfo[id][pAdmin] >= 6 && !EstiFondator(playerid)) return SendClientMessage(playerid, COLOR_WHITE, "Nu poti modifica admin level-ul unui admin 6+!.");
                if(IsPlayerConnected(id))
                {
                    if(id != INVALID_PLAYER_ID)
                    {
                        GetPlayerName(id, giveplayer, sizeof(giveplayer));
                        GetPlayerName(playerid, sendername, sizeof(sendername));
                        printf("AdmCmd: %s has promoted %s to a level %d admin.", sendername, giveplayer, adminlevel);
                        format(string, sizeof(string), "You've been promoted to level %d admin, by %s.", adminlevel, sendername);
                        SendClientMessage(id, COLOR_YELLOW, string);
                        format(string, sizeof(string), "You have promoted %s to a level %d admin.", giveplayer,adminlevel);
                        SendClientMessage(playerid, COLOR_YELLOW, string);
                        format(string, sizeof(string), "* Admin %s set %s's admin level to %d.", sendername,giveplayer,adminlevel);
                        ABroadCast(COLOR_ADMIN,string,1);
                        HLChat(COLOR_ADMCHAT,string);
                        mysql_real_escape_string(string, escape);
                        PlayerInfo[id][pAdmin] = adminlevel;
                        if(adminlevel == 0)
                        {
                            AdminDuty[id] = 0;
                        }
                        new str[256];
                        mysql_format(SQL,str,sizeof(str),"UPDATE users SET `Admin`='%d' WHERE `name`='%s'",PlayerInfo[id][pAdmin],PlayerInfo[id][pNormalName]);
                        mysql_tquery(SQL,str,"","");
                        mysql_format(SQL,str, sizeof(str), "INSERT INTO staff_logs (`text`) VALUES ('%s')", escape);
                        mysql_tquery(SQL,str,"","");
                    }
                }
                else
                {
                    SendClientMessage(playerid, COLOR_WHITE, "{FFFFCC}Error: Player not connected.");
                }
            }
            else
            {
                SendClientMessage(playerid, COLOR_ERROR, AdminOnly);
            }
        }
        return 1;
    }

    tine comanda buna succes cu sv

  4. La 24.02.2018 la 19:41, razvanduciuc a spus:

    Recomand, nu am lucrat cu el dar e un baiat de nota 10/10, mai multe detalii nu am despre el, dar stiu ca vorbeste frumos si se poarta civilizat fata de alti copilandri de 10-15 ani. Nu vreau sa jugnesc acei copilasi dar mintea lor este de aproximativ 5 ani, doar datorita faptului ca au stat de mici la PC si nu si-au trait o copilarie normala! Ci doar SA:MP, SA:MP de la 7 ani in sus, poate si de la 5 ani joaca SA:MP.

    Daca doresti te pot ajuta si eu cu anumite lucruri prin GM, insa nu vreau sa fiu scripter! Deoarece am lucrat si pentru alte comunitati apoi cand au vazut ca le tot adaug anumite chestii au inceput cu stresul in fiecare zi si am renuntat la ei!

    Daca ai nevoie de ajutor sau sprijin te pot ajuta cu cel mai mare drag, insa scripter nu pot fi deoarece am si eu comunitatea mea si e lipsa de timp pe care o pretuiesc foarte mult, pentru ca am si servici si prieteni si familie. Serverul e pe ultimul loc pot spune! Dar incerc sa ma descurc singur cu toate. :)

    Inca odata Recomand StR_Marian.

    care copil joaca samp de la 5-7 ani nici sa scrie nu pot dar tu deja joaca samp :D

    Recomand StR_Marian

  5. tot

    Acum 5 minute, SilviuInfinite a spus:

    Încearcă :

     

    
    public OnVehicleDeath(vehicleid)
    {
     	new engine,lights,alarm,doors,bonnet,boot,objective;
     	vehEngine[vehicleid] = 0;
    	GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
     	SetVehicleParamsEx(vehicleid,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
        if(IsAnOwnableCar(vehicleid))
     	{
    		foreach(new i : Player)
    		{
    			for(new v; v < MAX_PERSONAL_VEHICLES; v++)
    			{
    				if(PlayerInfo[i][pCarID][v] == vehicleid)
    				{
    					PlayerInfo[i][pCarHP][v] = 1000.0;
    					if(PlayerInfo[i][pCarIns][v] != 0)
    					{
    						PlayerInfo[i][pCarIns][v]--;
    					}
    					cUpdate(i, v, cInsurancecarx);
    					cUpdate(i, v, cKMx);
    					cUpdate(i, v, cHPx);
    				}
    			}
    		}
     	}
     	if(Destroycar == 1)
     	{
    		if(Carspawn[vehicleid] != 0)
    		{
    			DestroyVehicle(Carspawn[vehicleid]);
    			Carspawn[vehicleid] = 0;
    		}
    	}
    	StopAudioStreamForPlayersInCar(vehicleid);
     	return 1;
    }

     

    tot asa sau poate nu are insul legatura cu asta dar cam putin cred

  6. Acum 5 minute, SilviuInfinite a spus:
    
    panel/inc/pages/index.p.php

    Îți trebuie plugin-uri să  faci la fel (pagina de facebook sau canalul de youtube)

     

    La youtube pui :

    
    cum ar fi un link :
    
    https://www.youtube.com/watch?v=OemNTGjKgawqw&feature=youtu.be
    
    Copii după = până la & 
    
    Adică așa : OemNTGjKgawqw
    
    Iar după pui : https://www.youtube.com/embed/OemNTGjKgawqw

     

     

     

    am gasit mersi mult

  7. Chiar acum, SilviuInfinite a spus:

    la linia ” 'dbname'     =>     'burned' ” în loc de burned pune numele bazei de date pe care ai uploadat-o în localhost/phpmyadmin

    gata am pus era 127.0.0.1 si am inlocuit localhost si mrg dar de unde schimb la "Ultimul Videoclip" si "Facebook"?

  8. Acum 9 minute, SilviuInfinite a spus:

    Intra in :

    
    panel/app.php

    Acolo ai :

    
    DB::$db['mysql'] = [
    	'host' 		=> 	'Hostul', /// 127.0.0.1
    	'username' 	=> 	'username-ul bazei de date', /// root
    	'password' 	=> 	'parola de la baza de date', // spatiu liber (vorbind de localhost)
    	'dbname' 	=> 	'numele bazei de date' // numele la baza din phpmy admin
    	
    ];
    
    Config::$data = (object) [
    	'site_name' => 'Numele la panel', /// LocalHost | UCP
    	'url' => 'Locatia unde este panelul', /// http://localhost/panel/
    	'url_forum' => 'link forum ', /// http://localhost/forum/
    ];

    (!) tot ce este dupa "///" este doar un exemplu.

    Sper ca te-am ajutat

    am facut asa

    DB::$db['mysql'] = [
        'host'         =>     '127.00.1',
        'username'     =>     'root',
        'password'     =>     '',
        'dbname'     =>     'burned'
        
    ];

    Config::$data = (object) [
        'site_name' => 'Burned Panel',
        'url' => 'http://localhost/panel/',
        'url_forum' => '#',
    ];

    am intrat pe localhost/panel/

    si imi da o pagina alba fara nimic dc?

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