Jump to content

RusKo69

Membru
  • Posts

    31
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by RusKo69

  1. Deci, de la o vreme cand incerc sa intru pe SERVER imi apare casuta de dialog, pun parola CORECTA se inchide dialogul si asa ramane iar cand ma vreau sa intru in baza de date primesc asta:  User 'zp_hid16250' has exceeded the 'max_user_connections' resource (current value: 10)

     

     

  2. Cont Link: Click

     

    Pe cont sunt un jur de 8kk, 52 rubine, 28 ore si 184 respect points

    mai multe detalii le vedeti pe panel sa imi puteti lasa un PM

     

    Ca sanctiuni are un jail pentru dm de acum 5 luni si un ban pentru auto clicker de 3 luni si ceva

  3. salut, am incercat sa fac ceva gen sa poti da /check cand un jucator este offline si sa se ia din baza de date dar cand compilez imi da crash, sunt sigur ca e din cauza ca sunt prea multe, cum as putea sa rezolv?

     

    cod dialog

     

            case DIALOG_CHECK: {
                if(!response) return 1;
                new name[180], szQuery[256], szResult[180], check[180];
                GetPVarString(playerid, "CheckName", name, 256);
                format(szQuery, sizeof(szQuery), "SELECT * FROM `users` WHERE `name`='%s'", name);
                new Cache: result = mysql_query(SQL, szQuery);
                switch(listitem)
                {
                    case 0: cache_get_field_content(0, "name", szResult), format(check, 256, szResult);    
                    case 1: cache_get_field_content(0, "ConnectedTime", szResult), format(check, 256, szResult);
                    case 2: cache_get_field_content(0, "PhoneNr", szResult), format(check, 256, szResult);
                    case 3: cache_get_field_content(0, "Job", szResult), format(check, 256, szResult);        
                    case 4: cache_get_field_content(0, "Warnings", szResult), format(check, 256, szResult);
                    case 5: cache_get_field_content(0, "Level", szResult), format(check, 256, szResult);
                    case 6: cache_get_field_content(0, "Respect", szResult), format(check, 256, szResult);
                    case 7: cache_get_field_content(0, "Money", szResult), format(check, 256, szResult);
                    case 8: cache_get_field_content(0, "Bank", szResult), format(check, 256, szResult);            
                    case 9: cache_get_field_content(0, "House", szResult), format(check 256, szResult);
                    case 10: cache_get_field_content(0, "Bizz", szResult), format(check, 256, szResult);
                    case 11: cache_get_field_content(0, "Drugs", szResult), format(check, 256, szResult);
                    case 12: cache_get_field_content(0, "Materials", szResult), format(check, 256, szResult);
                    case 13: cache_get_field_content(0, "Premium", szResult), format(check, 256, szResult);
                    case 14: cache_get_field_content(0, "Vip", szResult), format(check, 256, szResult);
                    case 15: cache_get_field_content(0, "Member", szResult), format(check, 256, szResult);
                    case 16: cache_get_field_content(0, "Rank", szResult), format(check, 256, szResult);
                    case 17: cache_get_field_content(0, "FWarn", szResult), format(check, 256, szResult);
                    case 18: cache_get_field_content(0, "FPunish", szResult), format(check, 256, szResult);
                    case 19: cache_get_field_content(0, "Days", szResult), format(check, 256, szResult);
                    case 20: cache_get_field_content(0, "Rob", szResult), format(check, 256, szResult);
                    case 21: cache_get_field_content(0, "EscapePoints", szResult), format(check, 256, szResult);
                    case 22: cache_get_field_content(0, "RollPoints", szResult), format(check, 256, szResult);
                    case 23: cache_get_field_content(0, "Tokens", szResult), format(check, 256, szResult);
                    case 24: cache_get_field_content(0, "PremiumPoints", szResult), format(check, 256, szResult);
                    case 25: cache_get_field_content(0, "Admin", szResult), format(check, 256, szResult);
                    case 26: cache_get_field_content(0, "Helper", szResult), format(check, 256, szResult);
                    case 27: cache_get_field_content(0, "Leader", szResult), format(check, 256, szResult);
                    case 28: cache_get_field_content(0, "id", szResult), format(check, 256, szResult);
                    case 29: cache_get_field_content(0, "lastOn", szResult), format(check, 256, szResult);
                    case 30: cache_get_field_content(0, "RegisterDate", szResult), format(check, 256, szResult);
                    case 31: cache_get_field_content(0, "Email", szResult), format(check, 256, szResult);
                    case 32: cache_get_field_content(0, "GiftPoints", szResult), format(check, 256, szResult);
                }
                format(string, sizeof(string), "Database result: %s", check);
                SCM(playerid, COLOR_LIGHTRED, string);
                cache_delete(result);    
            }

  4.                for(new i = 1; i < sizeof(BizzInfo); i++)
                   {
                       if (IsPlayerInRangeOfPoint(playerid,2,BizzInfo[bEntranceX], BizzInfo[bEntranceY], BizzInfo[bEntranceZ]) && BizzInfo[bStatic] == 0)
                       {
                              if(GetPlayerVirtualWorld(playerid) != 0) return SCM(playerid, COLOR_LGREEN, "Eroare: Trebuie sa fi in Virtual World 0 pentru a putea intra intr-un biz.");
                           if(GetPlayerCash(playerid) >= BizzInfo[bFee])
                           {
                               if(BizzInfo[bLocked] == 1)
                               {
                                   GameTextForPlayer(playerid, "~r~~h~Inchis", 5000, 1);
                                   return 1;
                               }
                               GivePlayerCash(playerid,-BizzInfo[bFee]);
                               BizzInfo[bBalance] += BizzInfo[bFee];
                               if(i == 1 || i == 39) SCM(playerid,COLOR_LIGHTBLUE,"Comenzi disponibile: /withdraw, /deposit, /transfer.");
                               if(i == 25 || i == 37) SCM(playerid,COLOR_LIGHTBLUE,"Comenzi disponibile: /clothes, /buyhat, /glasses.");
                               if(i == 35 || i == 28) SCM(playerid,COLOR_LIGHTBLUE,"Comenzi disponibile: /playdice.");
                               if(i == 2 || i == 36) {
                                      SCM(playerid,COLOR_GREEN,"DM-ul pe server este interzis. Este permis doar pe politisti dar se sanctioneaza cu wanted.");
                                      SCM(playerid, COLOR_GREEN, "Daca faci DM pe alti jucatori risti sa primesti jail.");
                                      SCM(playerid, COLOR_WHITE, "Poti cumpara arme apasand tasta Y in zona indicata.");
                               }       
                               if(i == 26 || i == 27 || i == 38 || i == 31)  SCM(playerid,COLOR_LIGHTBLUE,"Comenzi disponibile: /eat.");
                               if(i == 3 || i == 4 || i == 5) {
                                   PlayAudioStreamForPlayer(playerid,alhamusic);
                                   SCM(playerid,COLOR_LIGHTBLUE,"Comenzi disponibile: /drink.");
                               }                               
                               if(i == 20 || i == 21 || i == 22 || i == 23 || i == 24 || i == 40 || i == 41 || i == 42) {
                                     SCM(playerid,COLOR_LIGHTBLUE,"Comenzi disponibile: /buy.");
                                     if(HaveFish[playerid] != 0) {
                                        ShowPlayerDialog(playerid, DIALOG_FISH, DIALOG_STYLE_MSGBOX, "Vinde pestele", "Vrei sa vinzi pestele in acest magazin?", "Da", "Nu");
                                    }
                                }    
                               if(i == 6) SCM(playerid,COLOR_LIGHTBLUE,"Comenzi disponibile: /buydildo.");                                                   
                               SetPlayerInterior(playerid,BizzInfo[bInterior]);
                               SetPlayerPosEx(playerid,BizzInfo[bExitX],BizzInfo[bExitY],BizzInfo[bExitZ]);
                               PlayerInfo[playerid][pInt] = BizzInfo[bInterior];
                               PlayerInfo[playerid][pLocal] = i+99;
                               SetPlayerVirtualWorld(playerid,BizzInfo[bVirtual]);
                               InBussines[playerid] = i;
                               Update(playerid, pCashx);
                               new str1[184];
                               format(str1,sizeof(str1),"UPDATE `bizz` SET `Till`='%d' WHERE `ID`='%d'",BizzInfo[bBalance],i);
                               mysql_query(SQL,str1);
                               
                               format(str1, sizeof(str1), "~r~-$%d", BizzInfo[bFee]);
                               GameTextForPlayer(playerid, str1, 1000, 1);
                           }
                           else
                           {
                               GameTextForPlayer(playerid, "~r~~h~Nu ai suma necesara de bani", 5000, 1);
                           }
                       }
                   }

     

     

     

     

     

     

               for(new i = 1; i <  sizeof(BizzInfo); i++)
               {
                      InBussines[playerid] = i;
                   if (PlayerToPoint(2, playerid,BizzInfo[bExitX], BizzInfo[bExitY], BizzInfo[bExitZ]) && BizzInfo[bVirtual] == GetPlayerVirtualWorld(playerid))
                   {
                          SetPlayerPosEx(playerid,BizzInfo[bEntranceX],BizzInfo[bEntranceY],BizzInfo[bEntranceZ]);
                       SetPlayerInterior(playerid,0);
                       PlayerInfo[playerid][pInt] = 0;
                       PlayerInfo[playerid][pLocal] = 255;
                       SetPlayerVirtualWorld(playerid,0);
                       InBussines[playerid] = -1;
                   }
               }

  5. public SyncUp()
    {
        foreach(Player, i) {
            if(IsPlayerConnected(i)) {
                if(PlayerTime != 0) PlayerTime --;
                if(PlayerTime2 != 0) PlayerTime2 --;
                if(PlayerTime3 != 0) PlayerTime3 --;
                if(PlayerTime4 != 0) PlayerTime4 --;
                if(PlayerTime5 != 0) PlayerTime5 --;
                if(PlayerTime6 != 0) PlayerTime6 --;
                if(PlayerTime7 != 0) PlayerTime7 --;
                if(PlayerTime8 != 0) PlayerTime8 --;
                if(PlayerTime10 != 0) PlayerTime10 --;
                if(PlayerInfo[pMember] != 0) PlayerInfo[pDays] ++;
            }
        }
        new tmphour;
        new tmpminute;
        new tmpsecond;
        new hour,minn,sec;
        gettime(hour,minn,sec);
        gettime(tmphour, tmpminute, tmpsecond);
        FixHour(tmphour);
        tmphour = shifthour;
        if ((tmphour > ghour) || (tmphour == 0 && ghour == 23))
        {
            ghour = tmphour;
            PayDay();
            if(hour == 0) {
                new query[256];
                format(query, sizeof(query), "UPDATE `users` SET `DayLogin`='0'");
                mysql_query(SQL, query);
                format(query, sizeof(query), "UPDATE `users` SET `Days`=`Days`+1 WHERE `Member`>'0'");
                mysql_query(SQL, query);
                format(query, sizeof(query), "UPDATE `users` SET `ClanDays`=`ClanDays`+1 WHERE `Clan`>'0'");
                mysql_query(SQL, query);
            }
            if(hour == 23)
            {
                new str[256];
                for(new turf = 1; turf < sizeof(TurfInfo); turf++)
                {
                    TurfInfo[turf][zTime] = 0;
                    format(str,sizeof(str),"UPDATE `turfs` SET `Time`='0' WHERE `ID`='%d'",turf);
                    mysql_query(SQL,str);
                }
            }
            
            if (realtime)
            {
                SetWorldTime(hour);
            }
        }    
        return 1;
    }

  6. Am adaugat intr-un Gamemode zilele in factiune dar uneori cand imi dau /auninvite apar niste zile total random, gen eu stau in acea factiune 1 zi si cand imi dau /auninvite imi apare ca am stat 15 zile

  7. CMD:spawncar(playerid, params[])
    {
        if(PlayerInfo[playerid][pAdmin] < 2) return SCM(playerid, COLOR_LGREEN, AdminOnly);
        new model,sendername[25],string[256];
        if(sscanf(params, "i", model)) return SCM(playerid,COLOR_GREY, "Sintaxa: {FFFFFF}/spawncar <Model>");
        if(model < 400 || model > 611) return SCM(playerid,COLOR_GREY, "Invalid car ID.");
        new Float:X,Float:Y,Float:Z;
        GetPlayerPos(playerid, X,Y,Z);
        new carid = CreateVehicleEx(model, X,Y,Z, 0.0, -1, -1, 100);
        Carspawn[carid] = carid;
        GetPlayerName(playerid, sendername, sizeof(sendername));
        new vehicles = GetVehicleModel(carid) - 400;
        format(string, sizeof(string), "AdmCmd: Admin %s a spawnat un %s [Model: %d - Car ID: %d].",sendername,aVehicleNames[vehicles],model,carid);
        SendAdminMessage(COLOR_LIGHTRED, string, 4);
        SetVehicleVirtualWorld(carid, GetPlayerVirtualWorld(playerid));
        PutPlayerInVehicle(playerid, carid, 0);
        format(string,sizeof(string),"VehLog: %s has spawned car model %d.",sendername,model);
        Adminlog(string);
        LinkVehicleToInterior(carid, GetPlayerInterior(playerid));
        return 1;
    }

  8. 19 minutes ago, andy47 said:

    Pentru a nu te repeta de fiecare data cu functia de preluare a numele GetPlayerName, ai putea crea o functie pentru asta. 

    stock GetName (playerid)

    new a [MAX_PLAYER_NAME];

    GetPlayerName (playerid, a, sizeof (a));

    return a;

    }

    Si o folosesti gen:

    new str [ 128 ];

    format (str, sizeof str, "Numele meu este: %s", GetName (playerid));

    Sau 

    if (sscanf (params,"u",id)) return Bla Bla

    format (str,sizeof str, " numele meu este %s, numele lui este %s", GetName (playerid), GetName (id));

    Scriu de pe telefon, sper ca ai inteles ideea.

    Da am inteles, am dar mna, asa am luat GM si acum incep sa l editez

  9. 14 hours ago, andy47 said:
    
    CMD:givelicense(playerid, params[])
    {
        if(!IsAInstructor(playerid)) return SCM(playerid, COLOR_LGREEN, "Eroare: Nu esti instructor.");
        new x_nr[30],id,sendername[30],giveplayer[30],string[128];
        if(sscanf(params, "s[30]u",x_nr,id))
        {
               SendClientMessage(playerid, COLOR_GREY, "Sintaxa: {FFFFFF}/givelicense <License name> <playerid/name>");
               SendClientMessage(playerid, COLOR_WHITE, "License: Sailing, Fishing, Weapon, Flying.");
    
               return 1;
        }
        if(IsInBlacklist(id, 12)) return SCM(playerid, COLOR_LGREEN, "Eroare: Acel player este pe blacklistul factiunii tale.");
        if(IsInBlacklist(id, 19)) return SCM(playerid, COLOR_LGREEN, "Eroare: Acel player este pe blacklistul factiunii tale.");
        if(id == INVALID_PLAYER_ID) return SCM(playerid, COLOR_LGREEN, "Eroare: Acel player nu este conectat.");
        if(strcmp(x_nr,"flying",true) == 0)
        {
            PlayerInfo[playerid][pCommands] ++;
            Update(playerid, pCommandsx);
    	    GetPlayerName(playerid, sendername, sizeof(sendername));
    	    GetPlayerName(id, giveplayer, sizeof(giveplayer));
            format(string, sizeof(string), "I-ai dat licenta de zbor de %s.",giveplayer);
            SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
            format(string, sizeof(string), "Instructor %s ti-a dat licenta de zbor.",sendername);
            SendClientMessage(id, COLOR_LIGHTBLUE, string);
            format(string, sizeof(string), "{008080}(School Instructors Dispatch){FFFFFF} %s i-a acordat lui %s licenta de zbor.",sendername,giveplayer);
            SendFactionMessage(12,COLOR_WHITE,string);
            SendFactionMessage(19, COLOR_WHITE, string);
            PlayerInfo[id][pFlyLic] = 1;
            PlayerInfo[id][pFlyLicT] = 100;
            Update(id, pFlyLicx);
            Update(id, pFlyLicTx);
            format(string, sizeof(string), "{008080}(Raport Status){FFFFFF} +1 raport point, total raport points: %d.", PlayerInfo[playerid][pCommands]);
            SCM(playerid, COLOR_WHITE, string);
    		return 1;
        }
        else if(strcmp(x_nr,"sailing",true) == 0)
        {
            PlayerInfo[playerid][pCommands] ++;
            Update(playerid, pCommandsx);
            GetPlayerName(playerid, sendername, sizeof(sendername));
    		GetPlayerName(id, giveplayer, sizeof(giveplayer));
            format(string, sizeof(string), "I-ai dat licenta de navigatie lui %s.",giveplayer);
            SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
            format(string, sizeof(string), "Instructor %s ti-a dat licenta de navigatie.",sendername);
            SendClientMessage(id, COLOR_LIGHTBLUE, string);
            format(string, sizeof(string), "{008080}(School Instructors Dispatch){FFFFFF} %s i-a acordat lui %s licenta de navigatie.",sendername,giveplayer);
            SendFactionMessage(12,COLOR_WHITE,string);
            SendFactionMessage(19, COLOR_WHITE, string);
            PlayerInfo[id][pBoatLic] = 1;
            PlayerInfo[id][pBoatLicT] = 100;
            Update(id, pBoatLicx);
            Update(id, pBoatLicTx);
            format(string, sizeof(string), "{008080}(Raport Status){FFFFFF} +1 raport point, total raport points: %d.", PlayerInfo[playerid][pCommands]);
            SCM(playerid, COLOR_WHITE, string);
            return 1;
        }
        else if(strcmp(x_nr,"fishing",true) == 0)
        {
            PlayerInfo[playerid][pCommands] ++;
            Update(playerid, pCommandsx);
    	    GetPlayerName(playerid, sendername, sizeof(sendername));
    	    GetPlayerName(id, giveplayer, sizeof(giveplayer));
            format(string, sizeof(string), "I-ai dat licenta de pescar lui %s.",giveplayer);
            SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
            format(string, sizeof(string), "Instructor %s ti-a dat licenta de pescar.",sendername);
            SendClientMessage(id, COLOR_LIGHTBLUE, string);
            format(string, sizeof(string), "{008080}(School Instructors Dispatch){FFFFFF} %s i-a acordat lui %s licenta de pescar.",sendername,giveplayer);
            SendFactionMessage(12,COLOR_WHITE,string);
            SendFactionMessage(19, COLOR_WHITE, string);
            PlayerInfo[id][pFishLic] = 1;
            PlayerInfo[id][pFishLicT] = 100;
            Update(id, pFishLicx);
            Update(id, pFishLicTx);
            format(string, sizeof(string), "{008080}(Raport Status){FFFFFF} +1 raport point, total raport points: %d.", PlayerInfo[playerid][pCommands]);
            SCM(playerid, COLOR_WHITE, string);
            return 1;
        }
        else if(strcmp(x_nr,"weapon",true) == 0)
        {
            PlayerInfo[playerid][pCommands] ++;
            Update(playerid, pCommandsx);
    	    GetPlayerName(playerid, sendername, sizeof(sendername));
    	    GetPlayerName(id, giveplayer, sizeof(giveplayer));
            format(string, sizeof(string), "I-ai dat licenta de arme lui %s.",giveplayer);
            SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
            format(string, sizeof(string), "Instructor %s ti-a dat licenta arme.",sendername);
            SendClientMessage(id, COLOR_LIGHTBLUE, string);
            format(string, sizeof(string), "{008080}(School Instructors Dispatch){FFFFFF} %s i-a acordat lui %s licenta de arme.",sendername,giveplayer);
            SendFactionMessage(12,COLOR_WHITE,string);
            SendFactionMessage(19, COLOR_WHITE, string);
            PlayerInfo[id][pGunLic] = 1;
            PlayerInfo[id][pGunLicT] = 100;
            Update(id, pGunLicTx);
            Update(id, pGunLicx);
            format(string, sizeof(string), "{008080}(Raport Status){FFFFFF} +1 raport point, total raport points: %d.", PlayerInfo[playerid][pCommands]);
            SCM(playerid, COLOR_WHITE, string);
            return 1;
        }
        return 1;
    }

     

    Rezolvat, mersi!

  10. CMD:givelicense(playerid, params[])
    {
        if(!IsAInstructor(playerid)) return SCM(playerid, COLOR_LGREEN, "Eroare: Nu esti instructor.");
        new x_nr[30],id,sendername[30],giveplayer[30],string[128];
        GetPlayerName(playerid, sendername, sizeof(sendername));
        GetPlayerName(id, giveplayer, sizeof(giveplayer));
        if(sscanf(params, "s[50]u",x_nr,id))
        {
               SendClientMessage(playerid, COLOR_GREY, "Sintaxa: {FFFFFF}/givelicense <License name> <playerid/name>");
               SendClientMessage(playerid, COLOR_WHITE, "License: Sailing, Fishing, Weapon, Flying.");

               return 1;
        }
        if(IsInBlacklist(id, 12)) return SCM(playerid, COLOR_LGREEN, "Eroare: Acel player este pe blacklistul factiunii tale.");
        if(IsInBlacklist(id, 19)) return SCM(playerid, COLOR_LGREEN, "Eroare: Acel player este pe blacklistul factiunii tale.");
        if(id == INVALID_PLAYER_ID) return SCM(playerid, COLOR_LGREEN, "Eroare: Acel player nu este conectat.");
        if(strcmp(x_nr,"flying",true) == 0)
        {
            PlayerInfo[playerid][pCommands] ++;
            Update(playerid, pCommandsx);
            format(string, sizeof(string), "I-ai dat licenta de zbor de %s.",giveplayer);
            SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
            format(string, sizeof(string), "Instructor %s ti-a dat licenta de zbor.",sendername);
            SendClientMessage(id, COLOR_LIGHTBLUE, string);
            format(string, sizeof(string), "{008080}(School Instructors Dispatch){FFFFFF} %s i-a acordat lui %s licenta de zbor.",sendername,giveplayer);
            SendFactionMessage(12,COLOR_WHITE,string);
               SendFactionMessage(19, COLOR_WHITE, string);
            PlayerInfo[id][pFlyLic] = 1;
            PlayerInfo[id][pFlyLicT] = 100;
            Update(id, pFlyLicx);
            Update(id, pFlyLicTx);
            format(string, sizeof(string), "{008080}(Raport Status){FFFFFF} +1 raport point, total raport points: %d.", PlayerInfo[playerid][pCommands]);
            SCM(playerid, COLOR_WHITE, string);
        }
        if(strcmp(x_nr,"sailing",true) == 0)    
        {
            PlayerInfo[playerid][pCommands] ++;
            Update(playerid, pCommandsx);
            format(string, sizeof(string), "I-ai dat licenta de navigatie lui %s.",giveplayer);
            SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
            format(string, sizeof(string), "Instructor %s ti-a dat licenta de navigatie.",sendername);
            SendClientMessage(id, COLOR_LIGHTBLUE, string);
            format(string, sizeof(string), "{008080}(School Instructors Dispatch){FFFFFF} %s i-a acordat lui %s licenta de navigatie.",sendername,giveplayer);
            SendFactionMessage(12,COLOR_WHITE,string);
            SendFactionMessage(19, COLOR_WHITE, string);
            PlayerInfo[id][pBoatLic] = 1;
            PlayerInfo[id][pBoatLicT] = 100;
            Update(id, pBoatLicx);
            Update(id, pBoatLicTx);
            format(string, sizeof(string), "{008080}(Raport Status){FFFFFF} +1 raport point, total raport points: %d.", PlayerInfo[playerid][pCommands]);
            SCM(playerid, COLOR_WHITE, string);
        }
        if(strcmp(x_nr,"fishing",true) == 0)
        {
            PlayerInfo[playerid][pCommands] ++;
            Update(playerid, pCommandsx);
            format(string, sizeof(string), "I-ai dat licenta de pescar lui %s.",giveplayer);
            SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
            format(string, sizeof(string), "Instructor %s ti-a dat licenta de pescar.",sendername);
            SendClientMessage(id, COLOR_LIGHTBLUE, string);
            format(string, sizeof(string), "{008080}(School Instructors Dispatch){FFFFFF} %s i-a acordat lui %s licenta de pescar.",sendername,giveplayer);
            SendFactionMessage(12,COLOR_WHITE,string);
            SendFactionMessage(19, COLOR_WHITE, string);
            PlayerInfo[id][pFishLic] = 1;
            PlayerInfo[id][pFishLicT] = 100;
            Update(id, pFishLicx);
            Update(id, pFishLicTx);
            format(string, sizeof(string), "{008080}(Raport Status){FFFFFF} +1 raport point, total raport points: %d.", PlayerInfo[playerid][pCommands]);
            SCM(playerid, COLOR_WHITE, string);
        }
        if(strcmp(x_nr,"weapon",true) == 0)
        {
            PlayerInfo[playerid][pCommands] ++;
            Update(playerid, pCommandsx);
            format(string, sizeof(string), "I-ai dat licenta de arme lui %s.",giveplayer);
            SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
            format(string, sizeof(string), "Instructor %s ti-a dat licenta arme.",sendername);
            SendClientMessage(id, COLOR_LIGHTBLUE, string);
            format(string, sizeof(string), "{008080}(School Instructors Dispatch){FFFFFF} %s i-a acordat lui %s licenta de arme.",sendername,giveplayer);
            SendFactionMessage(12,COLOR_WHITE,string);
            SendFactionMessage(19, COLOR_WHITE, string);
            PlayerInfo[id][pGunLic] = 1;
            PlayerInfo[id][pGunLicT] = 100;
            Update(id, pGunLicTx);
            Update(id, pGunLicx);
            format(string, sizeof(string), "{008080}(Raport Status){FFFFFF} +1 raport point, total raport points: %d.", PlayerInfo[playerid][pCommands]);
            SCM(playerid, COLOR_WHITE, string);
        }
        return 1;
    }

  11.     GetPlayerName(id, giveplayer, sizeof(giveplayer));

        format(string, sizeof(string), "{008080}(School Instructors Dispatch){FFFFFF} %s i-a acordat lui %s licenta de zbor.",sendername,giveplayer);
        SendFactionMessage(12,COLOR_WHITE,string);

  12. 1 hour ago, sNNEk said:

    CMD:vradminba(playerid, params[]) {
        new id,adminlevel,string[200];
        if(sscanf(params, "ui",id,adminlevel)) return SendClientMessage(playerid, COLOR_GREY, "USAGE: {FFFFFF}/setadmin <playerid/name> <Admin Level>");
        if(!IsPlayerConnected(id) || id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_GREY, "Acel player nu este conectat.");
        if(adminlevel < 0 || adminlevel > 7) return SendClientMessage(playerid, COLOR_GREY, "Invalid admin level! (0-7)");
        if(PlayerInfo[id][pAdmin] > PlayerInfo[playerid][pAdmin]) return SendClientMessage(playerid, COLOR_GREY, "Nu poti executa aceasta comanda pe acel player!");

    E comanda de rezerva in caz de uita /setadmin =))

    • Like 1
  13. Nu prea ma pricep dar cred ca e asa

    tu ai: SetPlayerCheckpoint(playerid, 2461.2788,1682.8472,11.0234, 3.0) Checkpoint[playerid] ++;

    Eu zic ca e SetPlayerCheckpoint(playerid, 2461.2788,1682.8472,11.0234, 3.0), Checkpoint[playerid] ++;

    Cel putin mie daca nu pun , imi da eroare

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