Jump to content

DraveN

Membru
  • Posts

    34
  • Joined

  • Last visited

    Never

Everything posted by DraveN

  1. DraveN

    Problema Sever

    Verifica filterscripts , asa mi s-a intamplat si mie , nu aveam un filterscript in folder si se inchidea sv.
  2. Poftim.: [pawn] else { GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "{FFFFFF}Admin {FF66FF}%s{FFFFFF} is now on duty.",sendername,playerid); SendClientMessageToAll(0x1B8EE4FF,string); AdminDuty[playerid] = 1; SetPlayerArmour(playerid, 10000000); SetPlayerHealth(playerid, 10000000); SetPlayerColor(playerid,0xFAAFBEFF); for(new i = 0; i < MAX_PLAYERS; i ++) { if(IsPlayerConnected(i)) { } }[/pawn] - aod [pawn]etTimerEx( "Heal", 1000, true, "dds", playerid ); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "{FFFFFF}Helper {FF66FF}%s{FFFFFF} is now on duty.Please /w him or /needhelp if you need help.",sendername,playerid); SendClientMessageToAll(0xFAAFBEFF,string); AdminDuty[playerid] = 1; SetPlayerArmour(playerid, 10000000); SetPlayerHealth(playerid, 10000000); SetPlayerColor(playerid,0xFAAFBEFF); for(new i = 0; i < MAX_PLAYERS; i ++) { if(IsPlayerConnected(i)) { SetPlayerMarkerForPlayer( i,playerid,0xFAAFBEFF ); }[/pawn] - HOD Acum faza cu -35hp [pawn]public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid) { if(AdminDuty[damagedid] == 1 || HelperDuty[damagedid] == 1) { new Float:playerHealth = 0; GetPlayerHealth ( playerid, playerHealth ); SetPlayerHealth(playerid, ( playerHealth - 35.0 ) ); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Nu ai voie sa ataci un admin / helper on duty !"); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Ai primit -35hp. Data viitoare fi mai atent"); } return 1; }[/pawn] Poftim.
  3. Dai reinstall server apoi punele iar :cool:
  4. libmysqlclient.so.15 trebuie.
  5. Daca ai ip static dezactiveaza firewall si deschide samp server si o sa le mearga
  6. Daca nu este hostat normal , trebuie ori hostat ori amachi ori ip static + firewall dezactivat.
  7. dezinstaleaza si instaleaza samp.
  8. Pe langa plaja ca tot a venit vara:))
  9. M-am uitat acum 2 seri , foarte smecher :shocked:
  10. DraveN

    G RPG v1.5

    Gm'ul este super trebuie sa te duca putin capul ca sa stii cum sa faci .
  11. POFTIM , dar vezi ca este mysql . pui undeva asta [pawn]forward LoadBanClass(); public LoadBanClass() { new Query[255]; format(Query, sizeof(Query), "SELECT * FROM banclass"); mysql_query(Query); maxim = mysql_store_result(); for(new idx = 1; idx <= maxim; idx++) { format(Query, sizeof(Query), "SELECT * FROM banclass WHERE id='%d'", idx); mysql_query(Query); // Querys the "Query" Variable. mysql_store_result(); // Stores the result from Query if(mysql_num_rows()) // Checks if theres anyrow. if(mysql_fetch_row_format(Query,"|")) // Splits the row { sscanf(Query, "p<|>e<is[255]>",BanData[idx]); } printf("* ID: %d | Clasa IPului: %s",idx, BanData[idx][xIp]); } return 1; }[/pawn] la OnPlayerConnect pui asta pe acolo LoadBanClass(); apoi comenzile : [pawn]//-----------------------------------------Comanda-----------------------------------------// if(strcmp(cmd, "/banclasses", true) == 0) { if(PlayerData[playerid][pAdmin] >= 6) { for(new i=1;i<=maxim;i++) { format(string, 256, "%s", BanData[xIp]); SendClientMessage(playerid, COLOR_WHITE, string); } } } if(strcmp(cmd, "/banclass", true) == 0) { if(PlayerData[playerid][pAdmin] < 6) { return 1; } new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= ' ')) { idx++; } new offset = idx; new result[255]; while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; } result[idx - offset] = EOS; for(new s = 0; s < num_words; s++) { new pos; while((pos = strfind(result,Swears,true)) != -1) for(new i = pos, j = pos + strlen(Swears); i < j; i++) { result = '*'; } } if(!strlen(result)) { SendUsage(playerid,"/banclass [ip]"); return 1; } if(strlen(result) < 3 || strlen(result) > 7) { SendUsage(playerid,"/banclass [ip]"); return 1; } if(strfind(result, "|", true) != -1) { SendClientMessage(playerid, COLOR_WHITE, "Server: {FF0000}ErroR."); return 1; } else { new done=0; new eliber = 0; for( new i = 1; i <= maxim; i++) { if(strfind(BanData[xIp],result, true) != -1) { done = i; i = maxim + 2; } if(strfind(BanData[xIp],"255.255", true) != -1) { eliber = i; i = maxim + 2; } } if(done > 0) { SendClientMessage(playerid, COLOR_WHITE, "Server: {FF0000}Aceasta clasa de ip este deja banata."); } else { if(eliber > 0) { new query[MAX_STRING]; maxim++; strmid(BanData[eliber][xIp], result, 0, strlen(result), 999); format(string, 256, "AdmWarning:{FFFFFF} %s a banat clasa de ip %s.", PlayerData[playerid][pNume], BanData[maxim][xIp]); ABroadCast(COLOR_LIGHTRED,string,1); format(query, sizeof(query), "UPDATE banclass SET iP='%s' WHERE id=%d", BanData[eliber][xIp], eliber); mysql_query(query); return 1; } else { new query[MAX_STRING]; maxim++; strmid(BanData[maxim][xIp], result, 0, strlen(result), 999); format(string, 256, "AdmWarning:{FFFFFF} %s a banat clasa de ip %s.", PlayerData[playerid][pNume], BanData[maxim][xIp]); ABroadCast(COLOR_LIGHTRED,string,1); format(query, sizeof(query), "INSERT INTO banclass (iP) VALUES ('%s')", BanData[maxim][xIp]); mysql_query(query); return 1; } } } } //-----------------------------------------Comanda-----------------------------------------// if(strcmp(cmd, "/unbanclass", true) == 0) { if(PlayerData[playerid][pAdmin] < 6) { return 1; } new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= ' ')) { idx++; } new offset = idx; new result[255]; while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; } result[idx - offset] = EOS; for(new s = 0; s < num_words; s++) { new pos; while((pos = strfind(result,Swears,true)) != -1) for(new i = pos, j = pos + strlen(Swears); i < j; i++) { result = '*'; } } if(!strlen(result)) { SendUsage(playerid,"/unbanclass [ip]"); return 1; } if(strlen(result) < 3 || strlen(result) > 7) { SendUsage(playerid,"/unbanclass [ip]"); return 1; } if(strfind(result, "|", true) != -1) { SendClientMessage(playerid, COLOR_WHITE, "Server: {FF0000}ErroR."); return 1; } else { new done=0; for( new i = 1; i <= maxim; i++) { if(strfind(BanData[xIp], result, true) != -1) { done = i; i = maxim + 2; } } if(done == 0) { return 1; } new query[MAX_STRING]; strmid(BanData[done][xIp], "255.255", 0, 7, 999); format(string, 256, "AdmWarning:{FFFFFF} %s a scos banul de pe clasa de ip %s.", PlayerData[playerid][pNume], BanData[done][xIp]); ABroadCast(COLOR_LIGHTRED,string,1); format(query, sizeof(query), "UPDATE banclass SET iP='%s' WHERE id=%d", BanData[done][xIp], done); mysql_query(query); return 1; } }[/pawn]
  12. DraveN

    Comanda mute

    if(strcmp(cmd, "/mute", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "{D580FE}Foloseste:{FFFFFF} /mute [playerid/PartOfName] [time(minutes)] [reason]"); return 1; } new playa; new time; playa = ReturnUser(tmp); tmp = strtok(cmdtext, idx); time = strval(tmp); if(gPlayerLogged[playa] == 0) { SendClientMessage(playerid, COLOR_GREY, " This player havent logged in yet!"); return 1; } if (PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 1) { if(IsPlayerConnected(playa)) { if(PlayerInfo[playa][pMuted] == 1) { SendClientMessage(playerid, TEAM_CYAN_COLOR, " Acest jucator are deja mute !"); return 1; } if(playa != INVALID_PLAYER_ID) { GetPlayerName(playa, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); new length = strlen(cmdtext); //adaugat while ((idx < length) && (cmdtext[idx] <= ' ')) { idx++; } new offset = idx; new result[128]; while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; } result[idx - offset] = EOS; if(!strlen(result)) { SendClientMessage(playerid, COLOR_GRAD2, "{D580FE}Foloseste:{FFFFFF} /mute [playerid/PartOfName] [time] [reason]"); return 1; }//aici if(PlayerInfo[playa][pMuted] == 0) { PlayerInfo[playa][pMuted] = 1; PlayerInfo[playa][pMuteTime] = time*60; printf("AdmCmd: %s silenced %s for %d minutes reason %s",sendername, giveplayer ,time, (result)); format(string, sizeof(string), "AdmCmd: %s was silenced by %s for %d minute(s) reason: %s",giveplayer ,sendername,time,(result)); SendClientMessageToAll(COLOR_LIGHTRED,string); //ABroadCast(COLOR_LIGHTRED,string,1); //format(string, sizeof(string), "* You can watch how many minutes you have left by typing /mutetime"); //SendClientMessage(giveplayerid,COLOR_GREY, string); } /*else { PlayerInfo[playa][pMuted] = 0; PlayerInfo[playa][pMuteTime] = 0; printf("VibePlay: %s unsilenced %s",sendername, giveplayer); format(string, sizeof(string), "AdmCmd: %s was unsilenced by %s",giveplayer ,sendername); SendClientMessageToAll(COLOR_LIGHTRED,string); //ABroadCast(COLOR_LIGHTRED,string,1); }*/ } } } else { SendClientMessage(playerid, COLOR_GRAD1, " Nu ai dreptul de a utiliza aceasta comanda!"); } } return 1; }
  13. if (strcmp("/gift", cmdtext, true, 10) == 0) { new premiu = random ( 8 ); if(PlayerInfo[playerid][pGift] == 1) { SendClientMessage(playerid, COLOR_WHITE, "Ai luat deja un cadou !"); return 1; } if ( premiu == 0 ) { PlayerInfo[playerid][pPills] += 150; PlayerInfo[playerid][pGift] = 1; SendClientMessage(playerid, 0xFF0033FF, "» Gift: {FFFFFF}Felicitari ai castigat 150 Pills."); SaveAccounts(); OnPlayerUpdateEx(playerid); }
  14. POFTIM , dar vezi ca este mysql . pui undeva asta [pawn]forward LoadBanClass(); public LoadBanClass() { new Query[255]; format(Query, sizeof(Query), "SELECT * FROM banclass"); mysql_query(Query); maxim = mysql_store_result(); for(new idx = 1; idx <= maxim; idx++) { format(Query, sizeof(Query), "SELECT * FROM banclass WHERE id='%d'", idx); mysql_query(Query); // Querys the "Query" Variable. mysql_store_result(); // Stores the result from Query if(mysql_num_rows()) // Checks if theres anyrow. if(mysql_fetch_row_format(Query,"|")) // Splits the row { sscanf(Query, "p<|>e<is[255]>",BanData[idx]); } printf("* ID: %d | Clasa IPului: %s",idx, BanData[idx][xIp]); } return 1; }[/pawn] la OnPlayerConnect pui asta pe acolo LoadBanClass(); apoi comenzile : [pawn]//-----------------------------------------Comanda-----------------------------------------// if(strcmp(cmd, "/banclasses", true) == 0) { if(PlayerData[playerid][pAdmin] >= 6) { for(new i=1;i<=maxim;i++) { format(string, 256, "%s", BanData[xIp]); SendClientMessage(playerid, COLOR_WHITE, string); } } } if(strcmp(cmd, "/banclass", true) == 0) { if(PlayerData[playerid][pAdmin] < 6) { return 1; } new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= ' ')) { idx++; } new offset = idx; new result[255]; while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; } result[idx - offset] = EOS; for(new s = 0; s < num_words; s++) { new pos; while((pos = strfind(result,Swears,true)) != -1) for(new i = pos, j = pos + strlen(Swears); i < j; i++) { result = '*'; } } if(!strlen(result)) { SendUsage(playerid,"/banclass [ip]"); return 1; } if(strlen(result) < 3 || strlen(result) > 7) { SendUsage(playerid,"/banclass [ip]"); return 1; } if(strfind(result, "|", true) != -1) { SendClientMessage(playerid, COLOR_WHITE, "Server: {FF0000}ErroR."); return 1; } else { new done=0; new eliber = 0; for( new i = 1; i <= maxim; i++) { if(strfind(BanData[xIp],result, true) != -1) { done = i; i = maxim + 2; } if(strfind(BanData[xIp],"255.255", true) != -1) { eliber = i; i = maxim + 2; } } if(done > 0) { SendClientMessage(playerid, COLOR_WHITE, "Server: {FF0000}Aceasta clasa de ip este deja banata."); } else { if(eliber > 0) { new query[MAX_STRING]; maxim++; strmid(BanData[eliber][xIp], result, 0, strlen(result), 999); format(string, 256, "AdmWarning:{FFFFFF} %s a banat clasa de ip %s.", PlayerData[playerid][pNume], BanData[maxim][xIp]); ABroadCast(COLOR_LIGHTRED,string,1); format(query, sizeof(query), "UPDATE banclass SET iP='%s' WHERE id=%d", BanData[eliber][xIp], eliber); mysql_query(query); return 1; } else { new query[MAX_STRING]; maxim++; strmid(BanData[maxim][xIp], result, 0, strlen(result), 999); format(string, 256, "AdmWarning:{FFFFFF} %s a banat clasa de ip %s.", PlayerData[playerid][pNume], BanData[maxim][xIp]); ABroadCast(COLOR_LIGHTRED,string,1); format(query, sizeof(query), "INSERT INTO banclass (iP) VALUES ('%s')", BanData[maxim][xIp]); mysql_query(query); return 1; } } } } //-----------------------------------------Comanda-----------------------------------------// if(strcmp(cmd, "/unbanclass", true) == 0) { if(PlayerData[playerid][pAdmin] < 6) { return 1; } new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= ' ')) { idx++; } new offset = idx; new result[255]; while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; } result[idx - offset] = EOS; for(new s = 0; s < num_words; s++) { new pos; while((pos = strfind(result,Swears,true)) != -1) for(new i = pos, j = pos + strlen(Swears); i < j; i++) { result = '*'; } } if(!strlen(result)) { SendUsage(playerid,"/unbanclass [ip]"); return 1; } if(strlen(result) < 3 || strlen(result) > 7) { SendUsage(playerid,"/unbanclass [ip]"); return 1; } if(strfind(result, "|", true) != -1) { SendClientMessage(playerid, COLOR_WHITE, "Server: {FF0000}ErroR."); return 1; } else { new done=0; for( new i = 1; i <= maxim; i++) { if(strfind(BanData[xIp], result, true) != -1) { done = i; i = maxim + 2; } } if(done == 0) { return 1; } new query[MAX_STRING]; strmid(BanData[done][xIp], "255.255", 0, 7, 999); format(string, 256, "AdmWarning:{FFFFFF} %s a scos banul de pe clasa de ip %s.", PlayerData[playerid][pNume], BanData[done][xIp]); ABroadCast(COLOR_LIGHTRED,string,1); format(query, sizeof(query), "UPDATE banclass SET iP='%s' WHERE id=%d", BanData[done][xIp], done); mysql_query(query); return 1; } }[/pawn]
  15. ia incearca sa pui %d in loc de %s
  16. inlocuieste cu asta daca vrei si modifici tu mesajul. [pawn]if(MedicBill[playerid] == 1 && PlayerInfo[playerid][pJailed] == 0 && PlayerPaintballing[playerid] == 0) { new string[128]; new cut = deathcost; GivePlayerMoney(playerid, -cut); format(string, sizeof(string), "[DOCTOR]: Factura ta medicala este de $%d. Ai grija sa nu mai mori !", cut); SendClientMessage(playerid, TEAM_CYAN_COLOR, string); MedicBill[playerid] = 0; MedicTime[playerid] = 0; NeedMedicTime[playerid] = 0; SetPlayerHealth(playerid, 100); SBizzInfo[14][sbTill] += cut / 1; ExtortionSBiz(14, cut / 3); }[/pawn]
  17. dai search in gm deathcost , si o sa iti apara new deathcost = 10250 pui 250 ;d
  18. am eroare la [pawn]while ((idx < length) && cmdtext[idx] <= ' '))[/pawn]
  19. [pawn]if(strcmp(cmd, "/advertise", true) == 0 || strcmp(cmd, "/ad", true) == 0) { if(IsPlayerConnected(playerid)) if(PlayerToPoint(2.0,playerid,648.340087,-1357.425415,13.571000)) { if(PlayerInfo[playerid][pLevel] < 2) { SendClientMessage(playerid, COLOR_GREY, "You need level 2 to use this !"); return 1; } if(PlayerInfo[playerid][pMuted] == 1) { SendClientMessage(playerid, TEAM_CYAN_COLOR, "You cannot speak, you have been silenced/disabled"); return 1; } if(gPlayerLogged[playerid] == 0) { SendClientMessage(playerid, COLOR_GREY, "You havent logged in yet !"); return 1; } GetPlayerName(playerid, sendername, sizeof(sendername)); new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= ' ')) { idx++; } new offset = idx; new result[64]; while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; } result[idx - offset] = EOS; if(!strlen(result)) { SendClientMessage(playerid, COLOR_GREY, "Type: (/ad)vertise [advert text]"); return 1; } if ((!adds) && (PlayerInfo[playerid][pAdmin] < 1)) { format(string, sizeof(string), "Incearca peste %d secunde, au fost trimise alte advertismente inainte !", (addtimer/1000)); SendClientMessage(playerid, COLOR_GRAD2, string); return 1; } new payout = idx * 25; if(PlayerInfo[playerid][pCash] < payout) { format(string, sizeof(string), "* You used %d characters which cost %d Lei, you don't have enough.", offset, payout); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); return 1; } GivePlayerCash(playerid, -payout); SBizzInfo[7][sbTill] += payout; ExtortionSBiz(7, payout); SBizzInfo[7][sbProducts]--; format(string, sizeof(string), "{2BC700}Anunt: %s, {F2EE00}By: %s Tel: %d", result, sendername,PlayerInfo[playerid][pPnumber]); SendClientMessageToAll(COLOR_WHITE, string); format(string, sizeof(string), "~r~Paid %d Lei~n~~w~Message contained: %d Characters", payout, idx); NextAd[playerid] = 0; GameTextForPlayer(playerid, string, 5000, 5); if (PlayerInfo[playerid][pAdmin] < 1){SetTimer("AddsOn", addtimer, 0);adds = 0;} } else if(PlayerToPoint(2.0,playerid, 2368.9646,2121.4871,10.8401)) { if(PlayerInfo[playerid][pLevel] < 2) { SendClientMessage(playerid, COLOR_GREY, "You need level 2 to use this !"); return 1; } if(PlayerInfo[playerid][pMuted] == 1) { SendClientMessage(playerid, TEAM_CYAN_COLOR, "You cannot speak, you have been silenced/disabled"); return 1; } if(gPlayerLogged[playerid] == 0) { SendClientMessage(playerid, COLOR_GREY, "You havent logged in yet !"); return 1; } GetPlayerName(playerid, sendername, sizeof(sendername)); new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= ' ')) { idx++; } new offset = idx; new result[64]; while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; } result[idx - offset] = EOS; if(!strlen(result)) { SendClientMessage(playerid, COLOR_GREY, "Type: (/ad)vertise [advert text]"); return 1; } if ((!adds) && (PlayerInfo[playerid][pAdmin] >= 1)) { format(string, sizeof(string), "Incearca peste %d secunde, au fost trimise alte advertismente inainte !", (addtimer/1000)); SendClientMessage(playerid, COLOR_GRAD2, string); return 1; } new payout = idx * 25; if(PlayerInfo[playerid][pCash] < payout) { format(string, sizeof(string), "* You used %d characters which cost %d Lei, you don't have enough.", offset, payout); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); return 1; } GivePlayerCash(playerid, -payout); SBizzInfo[13][sbTill] += payout; ExtortionSBiz(13, payout); SBizzInfo[13][sbProducts]--; NextAd[playerid] = 0; format(string, sizeof(string), "{2BC700}Anunt: %s, {F2EE00}By: %s Tel: %d", result, sendername,PlayerInfo[playerid][pPnumber]); SendClientMessageToAll(COLOR_WHITE, string); format(string, sizeof(string), "~r~Paid %d Lei~n~~w~Message contained: %d Characters", payout, idx); GameTextForPlayer(playerid, string, 5000, 5); if (PlayerInfo[playerid][pAdmin] < 1){SetTimer("AddsOn", addtimer, 0);adds = 0;} } else { SCM(playerid,COLOR_LIGHTRED,"Nu esti la agentie de anunturi."); } return 1; }[/pawn]
  20. Nume: DraveN Nume tutorial:/addfnews si /fnews Descriere: Salut cred ca uni stiti ce fac aceste comenzi dar hai sa va spun la toti. Leader-ul pd de exemplu scrie /addfnews ora 20:30 sedinta. Membri din pd scriu /fnews si le apare >> Faction News: ora 20:30 sedinta.Sper ca ati inteles:)) deci daca se poate sa imi explicati cum fac aceste 2 comenzi , raman dator.Multumesc
  21. DraveN

    Help :D

    Nu era de asta Era de la o paranteza pusa aiurea multumesc closed
  22. DraveN

    Help :D

    Nu gasesc frate .. ma poate ajuta cineva>?UP
  23. DraveN

    Help :D

    tot aceleasi erori.
×
×
  • 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.