Jump to content

EquiNoxAdv

V.I.P
  • Posts

    720
  • Joined

  • Last visited

  • Days Won

    35

Posts posted by EquiNoxAdv

  1. ProxDetectorS este solutia pentru tine. Am sa-ti las mai jos comanda.  Sper ca ti-am fost de ajutor.

    forward ProxDetectorS(Float:radi, playerid, targetid);
    public ProxDetectorS(Float:radi, playerid, targetid)
    {
        if(IsPlayerConnected(playerid)&&IsPlayerConnected(targetid))
    	{
    		new Float:posx, Float:posy, Float:posz;
    		new Float:oldposx, Float:oldposy, Float:oldposz;
    		new Float:tempposx, Float:tempposy, Float:tempposz;
    		GetPlayerPos(playerid, oldposx, oldposy, oldposz);
    		GetPlayerPos(targetid, posx, posy, posz);
    		tempposx = (oldposx -posx);
    		tempposy = (oldposy -posy);
    		tempposz = (oldposz -posz);
    		if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
    		{
    			return 1;
    		}
    	}
    	return 0;
    }
    
    //---------------------- Comanda ------------------------//
    
    CMD:givegunrange(playerid, params[])
    {
        new range, gunid;
    	if(sscanf(params, "ii", range, gunid)) return SendClientMessage(playerid, -1, "Syntax: /givegunrange [range] [gunid]");
    	if(playerVariables[playerid][pAdminLevel] >= 2)
    	{
    		format(szMessage, sizeof(szMessage), "Administrator %s gave gun %d to everyone in his range.", playerVariables[playerid][pNormalName], gunid);
    		foreach(Player, i)
    		{
    			if(ProxDetectorS(range, playerid, i))
    			{
    				givePlayerValidWeapon(i, gunid);
    				SendClientMessage(i, -1, szMessage);
    			}
    		}
    	}
    	return 1;
    }

     

    • Upvote 1
  2.    // Load normal stats 1
            format( String, sizeof( String ), "UPDATE `Accounts` SET `Password` = '%s', `Level` = '%d', `Admin` = '%d', `Banned` = '%d', `Sex` = '%d', `Tutorial` = '%d', `Bank` = '%d', `ForumName` = '%s' WHERE `UserID` = '%d'"
            , PlayerInfo[playerid][pKey], PlayerInfo[playerid][pLevel], PlayerInfo[playerid][pAdministrator], PlayerInfo[playerid][pBan], PlayerInfo[playerid][pSex], PlayerInfo[ playerid ][ pTut ], PlayerInfo[playerid][pBank],PlayerInfo[playerid][pForumName], PlayerInfo[playerid][pDatabaseID]);
            mysql_query(String);
     

     

     

    ​Incearca asta http://pastebin.com/pZ59Ee6k

  3. Problema intalnita (descriere): As vrea sa schimb mod-ulul de inregistrare la gamemode-ul IB:RP. As vrea sa fie ca pe serverele RPG, sa te inregistrezi pe server, nu pe site...
    Ero(area / rile) / warning-(ul / urile): -
    Liniile de cod / sursa / script-ul(obligatoriu):  http://pastebin.com/kz4BJ5gj
    Imagini / Video (optional): -
    Ati incercat sa rezolvati singur?: Nu, pentru ca nu cunosc asa de bine pawn, mai ales cand vine vorba despre MySQL..

    ​Data viitoare te rog eu sa incerci ceva. Poftim aici http://pastebin.com/hBKk5ant << Asta iti trebuie :) 

  4. https://calse.ru/ un host eftin 2e 100 sloturi 1an hosting .La rusi este cel mai eftin, şi eşti ajutat de catre suport, panel cu care te ajuta sa scriptezi mai repede.Etc 

    ​Cumperi Host din Russia si iti faci server in Romania? Glumesti , nu? O sa fie un lag enorm. In fine , recomand cu caldura ZeroPing sau Tarffichost :)

  5. ​Si BuGGeD crezi ca sunt mai speciali ? Si aia baga tot cu raksamp ... ca doar au staff mare :)) .

    ​Nu , nu stai sa bagi 300 boti cu RakSamp. Crede-ma , sunt NPC-uri din FileScrip cu nu stiu ce Plugin. Parca RNPC. In fine , treaba lor :D

  6. Problema intalnita (descriere):Am pus in gm sa arate numele player`ului respectiv sub mini map.Am dat rr la svr dar tot nu apare ...
    Ero(area / rile) / warning-(ul / urile):
    Liniile de cod / sursa / script-ul(obligatoriu):

    1.Am facut un new 

    new Text:Nume[MAX_PLAYERS];


    2. Am pus codul acesta la onpalyerconnect

    Codul de mai jos se adauga la OnGameModeInit nu la OnPlayerConnect.

    La OnPlayerConnect adaugi TextDrawShowForPlayer(playerid,Nume[playerid]); :D

     

    //-------------------Bogdan TXT------------------------
    new pnamee[24];
    GetPlayerName(playerid, pnamee, sizeof(pnamee));
    Nume[playerid]= TextDrawCreate(28.000000,428.000000,pnamee);
    TextDrawAlignment(Nume[playerid],0);
    TextDrawBackgroundColor(Nume[playerid],0xffffffff);
    TextDrawFont(Nume[playerid],1);
    TextDrawLetterSize(Nume[playerid],0.799999,1.200000);
    TextDrawColor(Nume[playerid],0x00ff0033);
    TextDrawSetOutline(Nume[playerid],1);
    TextDrawSetProportional(Nume[playerid],1);
    TextDrawSetShadow(Nume[playerid],1);
    TextDrawShowForPlayer(playerid,Nume[playerid]);
    //-------------------------------------------

    3. si am pus acesta la onplayerdisconnect


    TextDrawDestroy(Nume[playerid]);


    Imagini / Video (optional):n`am
    Ati incercat sa rezolvati singur?:da am incercat! dar akm mi s`a mutat ceasul :)) adica apare ceasul sub minimap :| LoL

     

  7. erorile de sus care le-am pus, sunt din mysql_log. Imi poti da tu versiunea corecta ?

    ​Download XAMMP , porneste server-ul apache si MySQL , (Opreste Skype inainte) , te duci frumos in browser si scri localhost/phpmyadmin , creezi o baza de date , pui acolo database de la GameMode , intri in GM , si faci asa

     

    #define SQL_HOST "localhost"

    #define SQL_USER "root"

    #define SQL_PASS ""

    #define SQL_DB "Numele DB-ului"

    Done , compilezi , dai un restart la server , in SA-MP adaugi server-ul , localhost:7777 si gata. Intri pe server.

  8. CMD:skill(playerid,params[])
    {		
         if(gPlayerLogged[playerid] == 0)
    		{
    		     if(IsPlayerConnected(playerid))
    		    {
    		        SendClientMessage(playerid, COLOR_LIGHTRED, "Trebuie sa te loghezi  mai intai.");
    				return 1;
    		    }
            new x_nr[19],string[256];
            if(sscanf(params, "s[5]",x_nr))
            {
                SendClientMessage(playerid, COLOR_DS, "__________________ Skill Info __________________");
                SendClientMessage(playerid, COLOR_DS, "{B8DBFF}Synthax: /skill <Type Skill ID>");
                  SendClientMessage(playerid, COLOR_DS, "{FFD633}(1)Lawyer");
                  SendClientMessage(playerid, COLOR_DS, "{FFD633}(2)Whore");
                  SendClientMessage(playerid, COLOR_DS, "{FFD633}(3)Drugs Dealer");
                  SendClientMessage(playerid, COLOR_DS, "{FFD633}(4)News Reporter ");
                  SendClientMessage(playerid, COLOR_DS, "{FFD633}(5)Car Mechanic");
                  SendClientMessage(playerid, COLOR_DS, "{FFD633}(6)Arms Dealer");
                  SendClientMessage(playerid, COLOR_DS, "{FFD633}(7)Fishing");
                  SendClientMessage(playerid, COLOR_DS, "{FFD633}(8)Rob");
                SendClientMessage(playerid, COLOR_DS, "{FFD633}(9)Muncitor in Cariera");
                return 1;
            }
            else if(strcmp(x_nr,"1",true) == 0)//Lawyer
            {
                new level = PlayerInfo[playerid][pLawSkill];
                if(level >= 0 && level <= 50) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Lawyer Skill level is 1."); format(string, sizeof(string), "{FFD633}You need to free %d more people to Level up.", 50 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 51 && level <= 100) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Lawyer Skill level is 2."); format(string, sizeof(string), "{FFD633}You need to free %d more people to Level up.", 100 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 101 && level <= 200) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Lawyer Skill level is 3."); format(string, sizeof(string), "{FFD633}You need to free %d more people to Level up.", 200 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 201 && level <= 400) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Lawyer Skill level is 4."); format(string, sizeof(string), "{FFD633}You need to free %d more people to Level up.", 400 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 401) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Lawyer Skill level is 5."); }
            }
            else if(strcmp(x_nr,"2",true) == 0)//Whore
            {
                new level = PlayerInfo[playerid][pSexSkill];
                if(level >= 0 && level <= 50) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Whore Skill level is 1."); format(string, sizeof(string), "{FFD633}You need to have sex %d times more to Level up.", 50 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 51 && level <= 100) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Whore Skill level is 2."); format(string, sizeof(string), "{FFD633}You need to have sex %d times more to Level up.", 100 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 101 && level <= 200) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Whore Skill level is 3."); format(string, sizeof(string), "{FFD633}You need to have sex %d times more to Level up.", 200 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 201 && level <= 400) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Whore Skill level is 4."); format(string, sizeof(string), "{FFD633}You need to have sex %d times more to Level up.", 400 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 401) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Whore Skill level is 5."); }
            }
            else if(strcmp(x_nr,"3",true) == 0)//Drugs Dealer
            {
                new level = PlayerInfo[playerid][pDrugsSkill];
                if(level >= 0 && level <= 50) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Drugs Dealer Skill level is 1."); format(string, sizeof(string), "{FFD633}You need to sell drugs %d times more to Level up.", 50 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 51 && level <= 100) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Drugs Dealer Skill level is 2."); format(string, sizeof(string), "{FFD633}You need to sell drugs %d times more to Level up.", 100 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 101 && level <= 200) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Drugs Dealer Skill level is 3."); format(string, sizeof(string), "{FFD633}You need to sell drugs %d times more to Level up.", 200 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 201 && level <= 400) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Drugs Dealer Skill level is 4."); format(string, sizeof(string), "{FFD633}You need to sell drugs %d times more to Level up.", 400 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 401) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Drugs Dealer Skill level is 5."); }
            }
            else if(strcmp(x_nr,"4",true) == 0)//News Reporter
            {
                new level = PlayerInfo[playerid][pNewsSkill];
                if(level >= 0 && level <= 50) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your News Reporter Skill level is 1."); format(string, sizeof(string), "{FFD633}You need to use /news %d times more to Level up.", 50 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 51 && level <= 100) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your News Reporter Skill level is 2."); format(string, sizeof(string), "{FFD633}You need to use /news %d times people to Level up.", 100 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 101 && level <= 200) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your News Reporter Skill level is 3."); format(string, sizeof(string), "{FFD633}You need to use /news %d times people to Level up.", 200 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 201 && level <= 400) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your News Reporter Skill level is 4."); format(string, sizeof(string), "{FFD633}You need to use /news %d times people to Level up.", 400 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 401) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your News Reporter Skill level is 5."); }
            }
            else if(strcmp(x_nr,"5",true) == 0)//Car Mechanic
            {
                new level = PlayerInfo[playerid][pMechSkill];
                if(level >= 0 && level <= 50) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Car Mechanic Skill level is 1."); format(string, sizeof(string), "{FFD633}You need to fix/fill a car for %d times more to Level up.", 50 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 51 && level <= 100) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Car Mechanic Skill level is 2."); format(string, sizeof(string), "{FFD633}You need to fix/fill a car for %d times people to Level up.", 100 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 101 && level <= 200) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Car Mechanic Skill level is 3."); format(string, sizeof(string), "{FFD633}You need to fix/fill a car for %d times people to Level up.", 200 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 201 && level <= 400) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Car Mechanic Skill level is 4."); format(string, sizeof(string), "{FFD633}You need to fix/fill a car for %d times people to Level up.", 400 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 401) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Car Mechanic Skill level is 5."); }
            }
            else if(strcmp(x_nr,"6",true) == 0)//pMatSkill
            {
                new level = PlayerInfo[playerid][pMatSkill];
                if(level >= 0 && level <= 50) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Arms Dealer Skill level is 1."); format(string, sizeof(string), "{FFD633}You need to deliver materials for %d times more to Level up.", 50 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 51 && level <= 100) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Arms Dealer Skill level is 2."); format(string, sizeof(string), "{FFD633}You need to deliver materials for %d times people to Level up.", 100 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 101 && level <= 200) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Arms Dealer Skill level is 3."); format(string, sizeof(string), "{FFD633}You need to deliver materials for %d times people to Level up.", 200 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 201 && level <= 400) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Arms Dealer Skill level is 4."); format(string, sizeof(string), "{FFD633}You need to deliver materials for %d times people to Level up.", 400 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 401) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Arms Dealer Skill level is 5."); }
            }
            else if(strcmp(x_nr,"7",true) == 0)//Fishing
            {
                new level = PlayerInfo[playerid][pFishSkill];
                if(level >= 0 && level <= 50) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Fishing Skill level is 1."); format(string, sizeof(string), "{FFD633}You need to Fish %d more Fishes to Level up.", 50 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 51 && level <= 100) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Fishing Skill level is 2."); format(string, sizeof(string), "{FFD633}You need to Fish %d more Fishes to Level up.", 100 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 101 && level <= 200) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Fishing Skill level is 3."); format(string, sizeof(string), "{FFD633}You need to Fish %d more Fishes to Level up.", 200 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 201 && level <= 400) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Fishing Skill level is 4."); format(string, sizeof(string), "{FFD633}You need to Fish %d more Fishes to Level up.", 400 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 401) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Fishing Skill level is 5."); }
            }
            else if(strcmp(x_nr,"8",true) == 0)//Robbing
            {
                new level = PlayerInfo[playerid][pRobSkill];
                if(level >= 0 && level <= 50) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Rob Skill level is 1."); format(string, sizeof(string), "{FFD633}You need to Rob the City Bank %d more times to Level up.", 50 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 51 && level <= 250) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Rob Skill level is 2."); format(string, sizeof(string), "{FFD633}You need to Rob the City Bank %d more times to Level up.", 100 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 251 && level <= 500) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Rob Skill level is 3."); format(string, sizeof(string), "{FFD633}You need to Rob the City Bank %d more times to Level up.", 200 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 501 && level <= 999) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Rob Skill level is 4."); format(string, sizeof(string), "{FFD633}You need to Rob the City Bank %d more times to Level up.", 400 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 1000) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Rob Skill level is 5."); }
            }
            else if(strcmp(x_nr,"9",true) == 0)//Muncitor
            {
                new level = PlayerInfo[playerid][pMuncitorSkill];
                if(level >= 0 && level <= 50) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Skill 1."); format(string, sizeof(string), "{FFD633}Mai fa %d curse pentru a trece la skill 2 .", 50 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 51 && level <= 100) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Skill 2."); format(string, sizeof(string), "{FFD633}Mai fa %d curse pentru a trece la skill 3 .", 100 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 101 && level <= 200) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Skill 3."); format(string, sizeof(string), "{FFD633}Mai fa %d curse pentru a trece la skill 4 .", 200 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 201 && level <= 400) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Skill 4."); format(string, sizeof(string), "{FFD633}Mai fa %d curse pentru a trece la skill 5.", 400 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 401) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Skill 5."); }
            }
            else return SendClientMessage(playerid, COLOR_DS, "{999999}Invalid parameter.");
        }
        return 1;
    }

    Acum?

  9. CMD:skill(playerid,params[])
    {
    		if(IsPlayerConnected(playerid))
    		{
    		    if(gPlayerLogged[playerid] == 0)
    		    {
    		        SendClientMessage(playerid, COLOR_LIGHTRED, "Trebuie sa te loghezi  mai intai.");
    				return 1;
    		    }
            new x_nr[19],string[256];
            if(sscanf(params, "s[5]",x_nr))
            {
                SendClientMessage(playerid, COLOR_DS, "__________________ Skill Info __________________");
                SendClientMessage(playerid, COLOR_DS, "{B8DBFF}Synthax: /skill <Type Skill ID>");
                  SendClientMessage(playerid, COLOR_DS, "{FFD633}(1)Lawyer");
                  SendClientMessage(playerid, COLOR_DS, "{FFD633}(2)Whore");
                  SendClientMessage(playerid, COLOR_DS, "{FFD633}(3)Drugs Dealer");
                  SendClientMessage(playerid, COLOR_DS, "{FFD633}(4)News Reporter ");
                  SendClientMessage(playerid, COLOR_DS, "{FFD633}(5)Car Mechanic");
                  SendClientMessage(playerid, COLOR_DS, "{FFD633}(6)Arms Dealer");
                  SendClientMessage(playerid, COLOR_DS, "{FFD633}(7)Fishing");
                  SendClientMessage(playerid, COLOR_DS, "{FFD633}(8)Rob");
                SendClientMessage(playerid, COLOR_DS, "{FFD633}(9)Muncitor in Cariera");
                return 1;
            }
            else if(strcmp(x_nr,"1",true) == 0)//Lawyer
            {
                new level = PlayerInfo[playerid][pLawSkill];
                if(level >= 0 && level <= 50) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Lawyer Skill level is 1."); format(string, sizeof(string), "{FFD633}You need to free %d more people to Level up.", 50 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 51 && level <= 100) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Lawyer Skill level is 2."); format(string, sizeof(string), "{FFD633}You need to free %d more people to Level up.", 100 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 101 && level <= 200) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Lawyer Skill level is 3."); format(string, sizeof(string), "{FFD633}You need to free %d more people to Level up.", 200 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 201 && level <= 400) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Lawyer Skill level is 4."); format(string, sizeof(string), "{FFD633}You need to free %d more people to Level up.", 400 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 401) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Lawyer Skill level is 5."); }
            }
            else if(strcmp(x_nr,"2",true) == 0)//Whore
            {
                new level = PlayerInfo[playerid][pSexSkill];
                if(level >= 0 && level <= 50) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Whore Skill level is 1."); format(string, sizeof(string), "{FFD633}You need to have sex %d times more to Level up.", 50 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 51 && level <= 100) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Whore Skill level is 2."); format(string, sizeof(string), "{FFD633}You need to have sex %d times more to Level up.", 100 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 101 && level <= 200) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Whore Skill level is 3."); format(string, sizeof(string), "{FFD633}You need to have sex %d times more to Level up.", 200 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 201 && level <= 400) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Whore Skill level is 4."); format(string, sizeof(string), "{FFD633}You need to have sex %d times more to Level up.", 400 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 401) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Whore Skill level is 5."); }
            }
            else if(strcmp(x_nr,"3",true) == 0)//Drugs Dealer
            {
                new level = PlayerInfo[playerid][pDrugsSkill];
                if(level >= 0 && level <= 50) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Drugs Dealer Skill level is 1."); format(string, sizeof(string), "{FFD633}You need to sell drugs %d times more to Level up.", 50 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 51 && level <= 100) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Drugs Dealer Skill level is 2."); format(string, sizeof(string), "{FFD633}You need to sell drugs %d times more to Level up.", 100 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 101 && level <= 200) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Drugs Dealer Skill level is 3."); format(string, sizeof(string), "{FFD633}You need to sell drugs %d times more to Level up.", 200 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 201 && level <= 400) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Drugs Dealer Skill level is 4."); format(string, sizeof(string), "{FFD633}You need to sell drugs %d times more to Level up.", 400 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 401) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Drugs Dealer Skill level is 5."); }
            }
            else if(strcmp(x_nr,"4",true) == 0)//News Reporter
            {
                new level = PlayerInfo[playerid][pNewsSkill];
                if(level >= 0 && level <= 50) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your News Reporter Skill level is 1."); format(string, sizeof(string), "{FFD633}You need to use /news %d times more to Level up.", 50 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 51 && level <= 100) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your News Reporter Skill level is 2."); format(string, sizeof(string), "{FFD633}You need to use /news %d times people to Level up.", 100 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 101 && level <= 200) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your News Reporter Skill level is 3."); format(string, sizeof(string), "{FFD633}You need to use /news %d times people to Level up.", 200 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 201 && level <= 400) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your News Reporter Skill level is 4."); format(string, sizeof(string), "{FFD633}You need to use /news %d times people to Level up.", 400 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 401) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your News Reporter Skill level is 5."); }
            }
            else if(strcmp(x_nr,"5",true) == 0)//Car Mechanic
            {
                new level = PlayerInfo[playerid][pMechSkill];
                if(level >= 0 && level <= 50) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Car Mechanic Skill level is 1."); format(string, sizeof(string), "{FFD633}You need to fix/fill a car for %d times more to Level up.", 50 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 51 && level <= 100) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Car Mechanic Skill level is 2."); format(string, sizeof(string), "{FFD633}You need to fix/fill a car for %d times people to Level up.", 100 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 101 && level <= 200) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Car Mechanic Skill level is 3."); format(string, sizeof(string), "{FFD633}You need to fix/fill a car for %d times people to Level up.", 200 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 201 && level <= 400) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Car Mechanic Skill level is 4."); format(string, sizeof(string), "{FFD633}You need to fix/fill a car for %d times people to Level up.", 400 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 401) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Car Mechanic Skill level is 5."); }
            }
            else if(strcmp(x_nr,"6",true) == 0)//pMatSkill
            {
                new level = PlayerInfo[playerid][pMatSkill];
                if(level >= 0 && level <= 50) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Arms Dealer Skill level is 1."); format(string, sizeof(string), "{FFD633}You need to deliver materials for %d times more to Level up.", 50 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 51 && level <= 100) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Arms Dealer Skill level is 2."); format(string, sizeof(string), "{FFD633}You need to deliver materials for %d times people to Level up.", 100 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 101 && level <= 200) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Arms Dealer Skill level is 3."); format(string, sizeof(string), "{FFD633}You need to deliver materials for %d times people to Level up.", 200 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 201 && level <= 400) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Arms Dealer Skill level is 4."); format(string, sizeof(string), "{FFD633}You need to deliver materials for %d times people to Level up.", 400 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 401) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Arms Dealer Skill level is 5."); }
            }
            else if(strcmp(x_nr,"7",true) == 0)//Fishing
            {
                new level = PlayerInfo[playerid][pFishSkill];
                if(level >= 0 && level <= 50) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Fishing Skill level is 1."); format(string, sizeof(string), "{FFD633}You need to Fish %d more Fishes to Level up.", 50 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 51 && level <= 100) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Fishing Skill level is 2."); format(string, sizeof(string), "{FFD633}You need to Fish %d more Fishes to Level up.", 100 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 101 && level <= 200) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Fishing Skill level is 3."); format(string, sizeof(string), "{FFD633}You need to Fish %d more Fishes to Level up.", 200 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 201 && level <= 400) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Fishing Skill level is 4."); format(string, sizeof(string), "{FFD633}You need to Fish %d more Fishes to Level up.", 400 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 401) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Fishing Skill level is 5."); }
            }
            else if(strcmp(x_nr,"8",true) == 0)//Robbing
            {
                new level = PlayerInfo[playerid][pRobSkill];
                if(level >= 0 && level <= 50) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Rob Skill level is 1."); format(string, sizeof(string), "{FFD633}You need to Rob the City Bank %d more times to Level up.", 50 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 51 && level <= 250) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Rob Skill level is 2."); format(string, sizeof(string), "{FFD633}You need to Rob the City Bank %d more times to Level up.", 100 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 251 && level <= 500) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Rob Skill level is 3."); format(string, sizeof(string), "{FFD633}You need to Rob the City Bank %d more times to Level up.", 200 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 501 && level <= 999) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Rob Skill level is 4."); format(string, sizeof(string), "{FFD633}You need to Rob the City Bank %d more times to Level up.", 400 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 1000) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Rob Skill level is 5."); }
            }
            else if(strcmp(x_nr,"9",true) == 0)//Muncitor
            {
                new level = PlayerInfo[playerid][pMuncitorSkill];
                if(level >= 0 && level <= 50) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Skill 1."); format(string, sizeof(string), "{FFD633}Mai fa %d curse pentru a trece la skill 2 .", 50 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 51 && level <= 100) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Skill 2."); format(string, sizeof(string), "{FFD633}Mai fa %d curse pentru a trece la skill 3 .", 100 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 101 && level <= 200) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Skill 3."); format(string, sizeof(string), "{FFD633}Mai fa %d curse pentru a trece la skill 4 .", 200 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 201 && level <= 400) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Skill 4."); format(string, sizeof(string), "{FFD633}Mai fa %d curse pentru a trece la skill 5.", 400 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 401) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Skill 5."); }
            }
            else return SendClientMessage(playerid, COLOR_DS, "{999999}Invalid parameter.");
        }
        return 1;
    }

    Incearca asa :)

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