Jump to content

EquiNoxAdv

V.I.P
  • Posts

    720
  • Joined

  • Last visited

  • Days Won

    35

Community Answers

  1. EquiNoxAdv's post in Ajutor eroare was marked as the answer   
    Rlly? 
    public OnPlayerEnterCheckpoint(playerid) { if PlayerInfo[playerid][pLevel] == 1) { ShowPlayerDialog(playerid, DIALOG_DMVTUT, DIALOG_STYLE_MSGBOX, "Tutorial 2", "Text", "OK", ""); return 1; } return 1; }  
  2. EquiNoxAdv's post in sa apara 2-3 randuri in chat atunci cand vorbesti was marked as the answer   
    Topic Closed <3 :3  
  3. EquiNoxAdv's post in Problema dealership was marked as the answer   
    Topic Closed <3 :3 
  4. EquiNoxAdv's post in nu se salveaza Tag clan was marked as the answer   
    48 ore fara raspuns / up. Topic Closed.
  5. EquiNoxAdv's post in Problema gamemode Hard RolePlay [Nu se salveaza datele] was marked as the answer   
    debug  
  6. EquiNoxAdv's post in problema winevent was marked as the answer   
    playerVariables[targetid][pMoney] += prize;
  7. EquiNoxAdv's post in Problema pornire server was marked as the answer   
    Da , am avut eu , in loc de localhost incearca 127.0.0.1 , cel putin asa imi ziceau ei. Si foloseste mysql_static 
  8. EquiNoxAdv's post in Problema /createclan was marked as the answer   
    Try this.
    CMD:createclan(playerid, params[]) { new cname[64], tag[24], tagtype; if(gLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_ERROR, "You are not logged in."); if(PlayerInfo[playerid][pCoins] < 1000) return SendClientMessage(playerid, COLOR_ERROR, "You don't have enough Gold. To create a clan you need to have 1000 gold."); if(PlayerInfo[playerid][pCMember] + PlayerInfo[playerid][pCLeader] != 0) return SendClientMessage(playerid, COLOR_ERROR, "You already are in a clan. You can't create one."); if(sscanf(params,"s[24]iis[64]",tag,tagtype,cname)) return SendClientMessage(playerid, COLOR_SYN, "Synthax:{FFFFFF} /createclan <tag> <tagtype (0 before / 1 after)> <name> | (!)Cost: 1000 gold"); { if(ExistClan(tag)) return SendClientMessage(playerid, COLOR_ERROR, "Clan already exist."); if(strlen(tag) > 10) return SendClientMessage(playerid, COLOR_ERROR, "Clan tag is to long."); if(strlen(cname) > 32) return SendClientMessage(playerid, COLOR_ERROR, "Clan name is to long."); TotalClans ++; strmid(ClanInfo[TotalClans][cName], cname, 0, 32, 32); strmid(ClanInfo[TotalClans][cTag], tag, 0, 10, 10); ClanInfo[TotalClans][cTagType] = tagtype; ClanInfo[TotalClans][cSlots] = 10; gQuery[0] = (EOS); mysql_format(handle, gQuery, sizeof(gQuery) ,"INSERT INTO `clans` (`Name`,`Tag`,`TagType`,`Slots`) VALUES ('%e','%e',%d,%d)", ClanInfo[TotalClans][cName], ClanInfo[TotalClans][cTag], ClanInfo[TotalClans][cTagType], ClanInfo[TotalClans][cSlots]); mysql_query(handle ,gQuery); new i = cache_insert_id(); format(gString,sizeof(gString),"Clan - %s - (ID:%d) with tag: %s and %d slots was created. Type [/shop] to buy more slots.", ClanInfo[TotalClans][cName], TotalClans, ClanInfo[TotalClans][cTag], ClanInfo[TotalClans][cSlots]); SendClientMessage(playerid, COLOR_SYN2,gString); format(gString, sizeof(gString), "%s created a clan: %s - (ID:%d) with tag: %s and %d slots.",GetName(playerid),ClanInfo[TotalClans][cName], TotalClans, ClanInfo[TotalClans][cTag], ClanInfo[TotalClans][cSlots]); CMDRaport(gString, 5, 0); PlayerInfo[playerid][pCoins] -= 1000; PlayerInfo[playerid][pCLeader] = i; Update(playerid, pCoinsx); } return 1; }  
  9. EquiNoxAdv's post in Problema CheckPoint-uri was marked as the answer   
    Simplu.
    Faci in felul urmator.
    new Float:gJobCheckPoint[16][3] = { {//Coordonatele}, {//Coordonatele}, {//Coordonatele}, {//Coordonatele}, {//Coordonatele}, {//Coordonatele}, {//Coordonatele}, {//Coordonatele}, {//Coordonatele}, {//Coordonatele}, {//Coordonatele}, {//Coordonatele}, {//Coordonatele}, {//Coordonatele}, {//Coordonatele}, {//Coordonatele}, }; //--- forward TruckTim( playerid ); public TruckTim( playerid ) { SetCameraBehindPlayer(playerid); TogglePlayerControllable( playerid, 1 ); ClearActorAnimations( actortruck ); ClearAnimations(playerid); for( new i; i< MAX_VEHICLES; i++ ) { if( vehicleVariables[ i ][ vVehicleJob ] == 3 ) { if( IsVehicleEmpty( i ) ) { SetVehicleToRespawn( i ); PutPlayerInVehicle( playerid, i, 0 ); CP[playerid] = 10253; randomize = random(sizeof(gJobCheckPoint)); SetPlayerCheckpoint(playerid, gJobCheckPoint[randomize][0], gJobCheckPoint[randomize][1], gJobCheckPoint[randomize][2], 8.0); SCM( playerid, COLOR_YELLOW, "SMS from Seful Depozitului ( private number ): Transporta marfa la destinatie."); return 1; } } } return 1; } 
    Sper sa-ti mearga.
  10. EquiNoxAdv's post in [BUG]CAR DAYS was marked as the answer   
    @Adrian Petre este gresit cum ai spus tu.
    Poti face in felul urmator.
    Te duci la 
    stock DestroyPlayerVehicleSi mai jos adaugi 
    mysql_format(handle,szMessage, 256,"UPDATE playeraccounts SET playerCar1Days = 0 WHERE playerID = %d", playerVariables[playerid][pInternalID]);Asta este pentru masina de pe Slot-ul 1. Pentru restu iei model si faci cum ti-am zis.
  11. EquiNoxAdv's post in Problema givegunrange was marked as the answer   
    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; } 
  12. EquiNoxAdv's post in Eroare logare was marked as the answer   
    Esti tu asa sigur? Te rog sa cauti in gamemode "sql_user sau mysql_connect"
  13. EquiNoxAdv's post in ajutor comanda /sethelper si /setadmin was marked as the answer   
    //----------------------------------[SETADMIN]------------------------------------------------ if(strcmp(cmd, "/setadmin", true) == 0) { if(IsPlayerConnected(playerid)) { if(gPlayerLogged[playerid] == 0) { SendClientMessage(playerid, COLOR_GREY, " Nu esti logat inca!"); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendUsage(playerid,"/setadmin [playerid/PartOfName] [Level(1-6)]"); return 1; } new para1; new level; para1 = ReturnUser(tmp); tmp = strtok(cmdtext, idx); level = strval(tmp); new PlayerName[MAX_PLAYER_NAME]; GetPlayerName(playerid, PlayerName, sizeof(PlayerName)); if (PlayerData[playerid][pAdmin] >= 6) { if(IsPlayerConnected(para1)) { if(para1 != INVALID_PLAYER_ID) { new day,month,year; getdate(day,month,year); new hour,minute,second; gettime(hour,minute,second); GetPlayerName(para1, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "Ai fost promovat Admin level %d de catre %s.", level, sendername); SendClientMessage(para1, COLOR_LIGHTBLUE, string); format(string, sizeof(string), " L-ai promovat pe %s la ADMIN Level %d.", giveplayer,level); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "%s l-a promovat pe %s la ADMIN Level %d.", sendername, giveplayer,level); ABroadCast(COLOR_LIGHTBLUE, string, 1); format(string, sizeof(string), "%s l-a promovat pe %s la ADMIN Level %d (%d-%d-%d), (%d:%d:%d)", sendername, giveplayer,level,day,month,year,hour,minute,second); admincmdslog(string); new query[256]; PlayerData[para1][pAdmin] = level; format(query, sizeof(query), "UPDATE players SET AdminLevel='%d' WHERE id=%d", PlayerData[para1][pAdmin], PlayerData[para1][pSQLID]); mysql_query(query); } } } else { SendError(playerid,cmd); } } return 1; } /sethelper if(strcmp(cmd, "/sethelper", true) == 0) { if(IsPlayerConnected(playerid)) { if(gPlayerLogged[playerid] == 0) { SendClientMessage(playerid, COLOR_GREY, " Nu esti logat inca!"); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendUsage(playerid,"/sethelper [playerid/PartOfName] [level(0/1)]"); return 1; } new para1; new level; para1 = ReturnUser(tmp); tmp = strtok(cmdtext, idx); level = strval(tmp); new PlayerName[MAX_PLAYER_NAME]; GetPlayerName(playerid, PlayerName, sizeof(PlayerName)); if(level > 1 || level < 0) return SendClientMessage(playerid,COLOR_WHITE,"Level-ul poate fi doar 0 sau 1!"); if (PlayerData[playerid][pAdmin] >= 6) { if(IsPlayerConnected(para1)) { if(para1 != INVALID_PLAYER_ID) { new day,month,year; getdate(day,month,year); new hour,minute,second; gettime(hour,minute,second); GetPlayerName(para1, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); if(level == 1) { format(string, sizeof(string), "Ai fost promovat la Helper de catre adminul %s.", sendername); SendClientMessage(para1, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "L-ai promovat pe %s la Helper.", giveplayer); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "%s l-a promovat pe %s la Helper", sendername, giveplayer); ABroadCast(COLOR_LIGHTBLUE, string, 1); format(string, sizeof(string), "%s l-a promovat pe %s la Helper level %d (%d-%d-%d), (%d:%d:%d)", sendername, giveplayer,level,day,month,year,hour,minute,second); admincmdslog(string); } else if(level == 0) { format(string, sizeof(string), "Ai fost scos din functia de Helper de adminul %s.", sendername); SendClientMessage(para1, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "L-ai scos din functia de Helper pe %s.", giveplayer); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "%s i-a scos Helper-ul lui %s.", sendername, giveplayer); ABroadCast(COLOR_LIGHTBLUE, string, 1); format(string, sizeof(string), "%s i-a scos Helper-ul lui %s(%d-%d-%d), (%d:%d:%d)", sendername, giveplayer,day,month,year,hour,minute,second); admincmdslog(string); } new query[256]; PlayerData[para1][pAgent] = level; format(query, sizeof(query), "UPDATE players SET Agent='%d' WHERE id=%d", PlayerData[para1][pAgent], PlayerData[para1][pSQLID]); mysql_query(query); } } } else { SendError(playerid,cmd); } } return 1; }Incearca asa.
  14. EquiNoxAdv's post in Eroare Mysql was marked as the answer   
    Scoate filescript-urile astea si mai incearca odata.
     
    [19:12:56] Loading filterscript 'antiflood.amx'...
    [19:12:56] Loading filterscript 'anti-flood.amx'...
    [19:12:56] Loading filterscript 'anti-flood-rate.amx'...
    [19:12:56] Loading filterscript 'Anti-join-flooding.amx'...
  15. EquiNoxAdv's post in Problema server cand il deschid was marked as the answer   
    Asta este alta problema. S-a rezolvat cu server-ul?
  16. EquiNoxAdv's post in Cu ce baza de date merge gm-ul BLOWN was marked as the answer   
    Poftim


  17. EquiNoxAdv's post in Mysql problem! Help me repede va rog was marked as the answer   
    Da , nu l-ai conectat la MySqL. Poftim un tutorial cum sa faci asta. 
  18. EquiNoxAdv's post in Nelamurire schimbare nume factiune was marked as the answer   
    E-Like .. Stiu , cauta in DataBase la Groups si schimba de acolo.
  19. EquiNoxAdv's post in Problema Linux was marked as the answer   
    http://www.girlshare.ro/32576078.7| Adauga asta in FTP apoi dai un restart. 
     
    Si editeaza asta :
     



  20. EquiNoxAdv's post in Problema Admin was marked as the answer   
    if(EsteManager(playerid))
     
    Cauta forward EsteManager(playerid);
               public EsteManager(playerid)     Vei gasi o lista cu anumite Nick-uri . Ex : if((strcmp(nume, "EquiNox", true) == 0). Acolo iti pui numele si recompilezi. 
  21. EquiNoxAdv's post in Problema Gamemod was marked as the answer   
    Verifica pluginurile. Vezi daca le-ai pus.
  22. EquiNoxAdv's post in Problema Register was marked as the answer   
    #define SQL_HOST "IP-ul Primit" #define SQL_USER "User-ul" #define SQL_PASS "parola"  
    #define SQL_DB "Baza de Date"   Daca tot nu se conecteaza , verifica daca ai importat corect baza de date. Sau daca este cea corecta.
×
×
  • 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.