Jump to content

wifi123

Membru
  • Posts

    37
  • Joined

  • Last visited

wifi123's Achievements

Enthusiast

Enthusiast (6/14)

  • First Post
  • Collaborator
  • Conversation Starter
  • Week One Done
  • One Month Later

Recent Badges

0

Reputation

  1. Pe bugged detin urmatoarele: - 49kk cash - Bullet VIP ( hid: 175/205) putini km, 929 zile - Infernus VIP ( hid: 175/205) putini km ,1059 zile - Sultan VIP ( hid: 175/205) putini km, 861 zile - NRG-500 (hid: 175/205) putini km, 726 zile Le dau pe iteme B-zone rpg1 Mai pot oferi si iteme Metin2 aeldra pe iteme bzone rpg1
  2. Pe bugged detin urmatoarele: - 49kk cash - Bullet VIP ( hid: 175/205) putini km, 929 zile - Infernus VIP ( hid: 175/205) putini km ,1059 zile - Sultan VIP ( hid: 175/205) putini km, 861 zile - NRG-500 (hid: 175/205) putini km, 726 zile Le dau pe iteme B-zone rpg1 Mai pot oferi si iteme Metin2 aeldra pe iteme bzone rpg1
  3. Nick:Wifi Problema: Vreau sa stiu si eu ce id au obiectele albastre din poza de mai jos , le caut de ceva zile si nu le gasesc pe nici un site Erori / warnings:- Lini/script:- Ai incercat sa rezolvi singur ?:-
  4. Da dar degeaba o sa o fac, de ex eu voi folosi comanda aia doar pentru masini personale dar o sa am nevoie si de comanda normala si daca folosesc comanda normala inseamna ca , comanda de respawnat masini personale este inutila pentru ca masinile personale vor disparea si v-a trebui sa dau rr sa apara la loc
  5. Nick:Wifi Problema:Am si eu o problema cu masinile personale , dupa ce dau respawn la masini , masinile personale se distrug si nu se mai respawneaza la loc Erori / warnings:- Lini/script:Mai jos Ai incercat sa rezolvi singur ?:Da , am incercat mai multe coduri de creat masini personale si la toate aceeasi buba , dispar cand folosesc comanda /respawncars [pawn]new vehicleid = GetPlayerVehicleID(playerid); GetPlayerName(playerid, pname, sizeof pname); if(newstate == PLAYER_STATE_DRIVER) { if(vehicleid == WiFi) { if(strcmp(pname, "WiFi", true) ==0) { return 1; } else { RemovePlayerFromVehicle(playerid); SendClientMessage(playerid,red,"This car is Owned by WiFi."); } } }[/pawn]
  6. Topic rezolvat , m-a ajutat Ph0eniX Mersi mult !
  7. Nick:wifi123 Problema:Am schimbat numele de la baza de date sql din acounts.db in ConturiServer.db si acum , jumate din conturi au level maxim, Erori / warnings: Lini/script: [pawn] BUD::Setting(opt.Database, "ConturiServer.db"); BUD::Setting(opt.Asynchronous, true); BUD::Setting(opt.KeepAliveTime, 3000); BUD::Setting(opt.CheckForUpdates, true); //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ BUD::Initialize(); //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ BUD::VerifyColumn("APass", BUD::TYPE_STRING); BUD::VerifyColumn("IP", BUD::TYPE_STRING); BUD::VerifyColumn("Hours", BUD::TYPE_NUMBER); BUD::VerifyColumn("Minutes", BUD::TYPE_NUMBER); BUD::VerifyColumn("Seconds", BUD::TYPE_NUMBER); BUD::VerifyColumn("Kills", BUD::TYPE_NUMBER); BUD::VerifyColumn("Deaths", BUD::TYPE_NUMBER); BUD::VerifyColumn("Admin", BUD::TYPE_NUMBER); BUD::VerifyColumn("Vip", BUD::TYPE_NUMBER); BUD::VerifyColumn("Respect", BUD::TYPE_NUMBER); BUD::VerifyColumn("NegRespect", BUD::TYPE_NUMBER); BUD::VerifyColumn("C4Bombs", BUD::TYPE_NUMBER); BUD::VerifyColumn("Ignores", BUD::TYPE_STRING); BUD::VerifyColumn("EnMS", BUD::TYPE_NUMBER); BUD::VerifyColumn("Banned", BUD::TYPE_NUMBER); BUD::VerifyColumn("Coins", BUD::TYPE_NUMBER); BUD::VerifyColumn("Score", BUD::TYPE_NUMBER); BUD::VerifyColumn("WifThings", BUD::TYPE_STRING); BUD::VerifyColumn("SPoints", BUD::TYPE_NUMBER); BUD::VerifyColumn("UseFavSkin", BUD::TYPE_STRING); BUD::VerifyColumn("AutoLog", BUD::TYPE_NUMBER); BUD::VerifyColumn("Money", BUD::TYPE_NUMBER); BUD::VerifyColumn("DescriptLines", BUD::TYPE_STRING); BUD::VerifyColumn("PMStyle", BUD::TYPE_NUMBER); BUD::VerifyColumn("RaceP", BUD::TYPE_NUMBER); BUD::VerifyColumn("KillingSpree", BUD::TYPE_NUMBER); BUD::VerifyColumn("AdmVipWarns", BUD::TYPE_STRING); BUD::VerifyColumn("DriftP", BUD::TYPE_NUMBER); BUD::VerifyColumn("LasONLoggedIn", BUD::TYPE_STRING); BUD::VerifyColumn("HObject0", BUD::TYPE_STRING); BUD::VerifyColumn("HObject1", BUD::TYPE_STRING); BUD::VerifyColumn("HObject2", BUD::TYPE_STRING); BUD::VerifyColumn("HObject3", BUD::TYPE_STRING); BUD::VerifyColumn("HObject4", BUD::TYPE_STRING); BUD::VerifyColumn("HObject5", BUD::TYPE_STRING); BUD::VerifyColumn("HObject6", BUD::TYPE_STRING); BUD::VerifyColumn("HObject7", BUD::TYPE_STRING); BUD::VerifyColumn("HObject8", BUD::TYPE_STRING); BUD::VerifyColumn("HObject9", BUD::TYPE_STRING); BUD::VerifyColumn("UseHolds", BUD::TYPE_NUMBER);[/pawn] [pawn]stock ShowTop(playerid, stats[], what[], limit = MAX_TOP_LIMIT) { //-------------------------------------------------------------------------- new Speed = GetTickCount(), DialString[3_000], String[2][128], Query[2][256], DBResult:Result1, DB:g_dbKeptAlive, what2[30]; g_dbKeptAlive = db_open("ConturiServer.db"); //-------------------------------------------------------------------------- format(Query[0], 256, "SELECT `name` FROM `users` ORDER BY `%s` *1 DESC limit %d", stats, limit); Result1 = db_query(g_dbKeptAlive, Query[0]); //-------------------------------------------------------------------------- if(!strcmp(what, "Score")) what2 = "Score"; else if(!strcmp(what, "Coins")) what2 = "Coins"; else if(!strcmp(what, "Hours")) what2 = "Hours"; else if(!strcmp(what, "Respect")) what2 = "Respect"; else if(!strcmp(what, "Kills")) what2 = "Kills"; else if(!strcmp(what, "SPoints")) what2 = "Stunt Points"; else if(!strcmp(what, "RaceP")) what2 = "Race Points"; else if(!strcmp(what, "DriftP")) what2 = "Drift Points"; else if(!strcmp(what, "KillingSpree")) what2 = "Best Killing Spree"; //-------------------------------------------------------------------------- format(DialString, sizeof DialString, "{FF9900}Top Players by {11FF00}%s\n", what2); for(new Qr; Qr < db_num_rows(Result1); Qr++) { db_get_field(Result1, 0, String[0], 128); format(Query[1], 256, "SELECT `%s` FROM `users` WHERE `Name` = '%s'", stats, String[0]); new DBResult:Result2 = db_query(g_dbKeptAlive, Query[1]); db_get_field(Result2, 0, String[1], 128); //---------------------------------------------------------------------- if(!strcmp(stats, "Score")) format(DialString, sizeof DialString, "%s\n{AFAFAF}%d. {11FF00}%s {AFAFAF}Score: {00BBF6}%s", DialString, Qr+1, String[0], String[1]/*FormatNumber(strval(String[1]))*/ ); //---------------------------------------------------------------------- else if(!strcmp(stats, "Coins")) format(DialString, sizeof DialString, "%s\n{AFAFAF}%d. {11FF00}%s {AFAFAF}Coins: {00BBF6}%s", DialString, Qr+1, String[0], String[1]/*FormatNumber(strval(String[1]))*/); //---------------------------------------------------------------------- else if(!strcmp(stats, "SPoints")) format(DialString, sizeof DialString, "%s\n{AFAFAF}%d. {11FF00}%s {AFAFAF}Stunt Points: {00BBF6}%s", DialString, Qr+1, String[0], String[1]/*FormatNumber(strval(String[1]))*/); //---------------------------------------------------------------------- else if(!strcmp(stats, "Hours")) format(DialString, sizeof DialString, "%s\n{AFAFAF}%d. {11FF00}%s {AFAFAF}Hours: {00BBF6}%s", DialString, Qr+1, String[0], String[1]/*FormatNumber(strval(String[1]))*/); //---------------------------------------------------------------------- else if(!strcmp(stats, "Kills")) format(DialString, sizeof DialString, "%s\n{AFAFAF}%d. {11FF00}%s {AFAFAF}Kills: {00BBF6}%s", DialString, Qr+1, String[0], String[1]/*FormatNumber(strval(String[1]))*/); //---------------------------------------------------------------------- else if(!strcmp(stats, "Respect")) format(DialString, sizeof DialString, "%s\n{AFAFAF}%d. {11FF00}%s {AFAFAF}Respect: {00BBF6}%s", DialString, Qr+1, String[0], String[1]/*FormatNumber(strval(String[1]))*/); //---------------------------------------------------------------------- else if(!strcmp(stats, "RaceP")) format(DialString, sizeof DialString, "%s\n{AFAFAF}%d. {11FF00}%s {AFAFAF}Race Points: {00BBF6}%s", DialString, Qr+1, String[0], String[1]/*FormatNumber(strval(String[1]))*/); //---------------------------------------------------------------------- else if(!strcmp(stats, "DriftP")) format(DialString, sizeof DialString, "%s\n{AFAFAF}%d. {11FF00}%s {AFAFAF}Drift Points: {00BBF6}%s", DialString, Qr+1, String[0], String[1]/*FormatNumber(strval(String[1]))*/); //---------------------------------------------------------------------- else if(!strcmp(stats, "KillingSpree")) format(DialString, sizeof DialString, "%s\n{AFAFAF}%d. {11FF00}%s {AFAFAF}Best Killing Spree: {00BBF6}%s", DialString, Qr+1, String[0], String[1]/*FormatNumber(strval(String[1]))*/); //---------------------------------------------------------------------- db_next_row(Result1); db_free_result(Result2); } db_free_result(Result1); db_close(g_dbKeptAlive); format(DialString, sizeof DialString, "%s\n\n{FF9900}Top list generated in {11FF00}%d{FF9900} ms.", DialString, GetTickCount() - Speed); ShowPlayerDialog( playerid, 123, DIALOG_STYLE_MSGBOX, "{0066CC}W{FFFF00}I{FF0000}F{AFAFAF} - Top Players", DialString, "Ok", ""); return 1; }[/pawn] Ai incercat sa rezolvi singur ?:Da , am schimbat numele la baza de date ca sa scap de cineva care imi tot dadea sql injection si am schimbat numele crezand ca nu o sa imi mai de-a sql inject daca nu stia numele de la baza dar fara folos , stiu ca baza de date sql este foarte veche si ca nu se mai foloseste dar nu stiu cum sa trec pe mysql , am vazut ca in gm am linii cu mysql dar sunt inchise cu /* */
  8. Nici un plugin , este bagat in gm de forma aceasta Database = db_open("Accounts.db");
  9. Nick: wifi123 Problema:Salut SA:MP.ro am si eu o problema cu baza de date sql , recent am primit sql injection de la cineva si mi-a sters toate conturile de pe server , am incercat sa bag protectie anti sql injection cu dar in zadar , Erori / warnings:- Lini/script: Mai jos Ai incercat sa rezolvi singur ?:Da , dar in zadar Acest cod l-am bagat in gm cu gandul ca ma v-a proteja dar nimic... [pawn]stock DB_Escape(text[]) { new ret[MAX_INI_ENTRY_TEXT * 2], ch, i, j; while ((ch = text[i++]) && j < sizeof (ret)) { if (ch == '\'') { if (j < sizeof (ret) - 2) { ret[j++] = '\''; ret[j++] = '\''; } } else if (j < sizeof (ret)) { ret[j++] = ch; } else { j++; } } ret[sizeof (ret) - 1] = '\0'; return ret; }[/pawn] De exemplu , am aceste lini [pawn]stock ShowTop(playerid, stats[], what[], limit = MAX_TOP_LIMIT) { //-------------------------------------------------------------------------- new Speed = GetTickCount(), DialString[3_000], String[2][128], Query[2][256], DBResult:Result1, DB:g_dbKeptAlive, what2[30]; g_dbKeptAlive = db_open("Accounts.db"); //-------------------------------------------------------------------------- format(Query[0], 256, "SELECT `name` FROM `users` ORDER BY `%s` *1 DESC limit %d", stats, limit); Result1 = db_query(g_dbKeptAlive, Query[0]); //-------------------------------------------------------------------------- if(!strcmp(what, "Kills")) what2 = "Kills"; else if(!strcmp(what, "Hours")) what2 = "Hours"; else if(!strcmp(what, "SPoints")) what2 = "Stunt Points"; else if(!strcmp(what, "DriftP")) what2 = "Drift Points"; else if(!strcmp(what, "RaceP")) what2 = "Race Points"; //-------------------------------------------------------------------------- format(DialString, sizeof DialString, "", what2); for(new Qr; Qr < db_num_rows(Result1); Qr++) { db_get_field(Result1, 0, String[0], 128); format(Query[1], 256, "SELECT `%s` FROM `users` WHERE `Name` = '%s'", stats, String[0]); new DBResult:Result2 = db_query(g_dbKeptAlive, Query[1]); db_get_field(Result2, 0, String[1], 128); //---------------------------------------------------------------------- if(!strcmp(stats, "Kills")) format(DialString, sizeof DialString, "%s\n{00FF00}%d. {CCCCCC}%s: {FF0000}%s Kills", DialString, Qr+1, String[0], String[1]/*FormatNumber(strval(String[1]))*/); //---------------------------------------------------------------------- else if(!strcmp(stats, "Hours")) format(DialString, sizeof DialString, "%s\n{00FF00}%d. {CCCCCC}%s: {FF0000}%s Hours", DialString, Qr+1, String[0], String[1]/*FormatNumber(strval(String[1]))*/); //---------------------------------------------------------------------- else if(!strcmp(stats, "SPoints")) format(DialString, sizeof DialString, "%s\n{00FF00}%d. {CCCCCC}%s: {FF0000}%s Stunt Points", DialString, Qr+1, String[0], String[1]/*FormatNumber(strval(String[1]))*/); //---------------------------------------------------------------------- else if(!strcmp(stats, "DriftP")) format(DialString, sizeof DialString, "%s\n{00FF00}%d. {CCCCCC}%s: {FF0000}%s Drift Points", DialString, Qr+1, String[0], String[1]/*FormatNumber(strval(String[1]))*/); //---------------------------------------------------------------------- else if(!strcmp(stats, "RaceP")) format(DialString, sizeof DialString, "%s\n{00FF00}%d. {CCCCCC}%s: {FF0000}%s Race Points", DialString, Qr+1, String[0], String[1]/*FormatNumber(strval(String[1]))*/); //---------------------------------------------------------------------- db_next_row(Result1); db_free_result(Result2); } db_free_result(Result1); db_close(g_dbKeptAlive); format(DialString, sizeof DialString, "%s\n\n{CCFF66}The players with most points will apear here!\n{CCFF66}It is a honor to apear here!", DialString, GetTickCount() - Speed); ShowPlayerDialog( playerid, 123, DIALOG_STYLE_MSGBOX, "{CCFF66}Top 10 players, DialString, "Close", ""); return 1; }[/pawn] cum pot face sa fie protejat de sql injection ?
  10. tu nu vezi ce am zis mai sus ca am incercat cu alea de pe wiki si nu am reusit sa le dau de cap
  11. Salut , stiti cumva cum pot adauga 3dtextlabel pe o masina ? Am incercat eu cu mai multe metode si nu am reusit [pawn] if(GetPlayerVehicleID(playerid) == Wifi123) { new sendername[MAX_PLAYER_NAME]; GetPlayerName(playerid, sendername, sizeof(sendername)); if(strcmp(sendername,"Wifi123",true)) { GameTextForPlayer(playerid, "~r~C~w~ar~r~O~w~ner: ~b~Wifi123", 3000, 4); SendClientMessage(playerid,COLOR_GREY," Nu esti proprietarul acestei masini!"); RemovePlayerFromVehicle(playerid); } }[/pawn] Vreau sa fac ca la masinile personale sa apara owneru cu 3dtextlabel , am incercat sa pun in script-ul de mai sus asta: [pawn]CreatePlayer3DTextLabel(playerid,"~r~C~w~ar~r~O~w~ner: ~b~Wifi123", red,0.0,-1.6,-0.35,40.0,INVALID_PLAYER_ID,vehicleid,0);[/pawn] dar nu a mers
  12. Am si eu o problema cu , comanda /respawnallcars , daca pun o masina langa icon-ul de la o casa si dau /respawnallcars , se incurca textdraw-urile , adica masina ia textdraw-ul cu owner , pret...etc de la casa [pawn]dcmd_rac(playerid, params[]){ #pragma unused params if(PlayerInfo[playerid][Level] <= 12){ SendClientMessage(playerid, red, "ERROR:You can't use this command!"); } else { new str[128]; GetPlayerName(playerid, str, sizeof(str)); format(str, sizeof(str), "{FFFFFF}Owner {0049FF}%s {FFFFFF}has respawned all the unused cars", str); for(new i = 0; i < MAX_VEHICLES; i++) { if(IsVehicleOccupied(i) == 0) { SetVehicleToRespawn(i); PlayerPlaySound(i, 1057, 0.0, 0.0, 0.0); SendClientMessage(i, red, str); } } } return 1; }[/pawn] [pawn]stock IsVehicleOccupied(vehicleid) { for(new i = 0; i < MAX_PLAYERS; i++) if(IsPlayerInVehicle(i, vehicleid) && GetPlayerState(i) == PLAYER_STATE_DRIVER) return 1; return 0; }[/pawn]
  13. up
  14. Salut SA:MP.ro am o problema cu sistemul de wanted , playerul omoara un politist/fbi/ng si nu primeste wanted si lafel si cand playerul omoara alt player , uitati aici liniile din gm cu wanted [pawn]public SetPlayerCriminal(playerid,declare,reason[]) { if(IsPlayerConnected(playerid)) { if(AdminDuty[playerid] == 1) { } else { PlayerInfo[playerid][pCrimes] += 1; new turned[MAX_PLAYER_NAME]; new turner[MAX_PLAYER_NAME]; new turnmes[128]; new wantedmes[128]; strmid(PlayerCrime[playerid][pAccusedof], reason, 0, strlen(reason), 255); GetPlayerName(playerid, turned, sizeof(turned)); if (declare == 255) { format(turner, sizeof(turner), "Unknown"); strmid(PlayerCrime[playerid][pVictim], turner, 0, strlen(turner), 255); } else { if(IsPlayerConnected(declare)) { GetPlayerName(declare, turner, sizeof(turner)); strmid(PlayerCrime[playerid][pVictim], turner, 0, strlen(turner), 255); strmid(PlayerCrime[declare][pBplayer], turned, 0, strlen(turned), 255); strmid(PlayerCrime[declare][pAccusing], reason, 0, strlen(reason), 255); } } format(turnmes, sizeof(turnmes), "You've commited a Crime ( %s ). News Reporter: %s.",reason,turner); SCM(playerid, COLOR_LIGHTRED, turnmes); if(Var[WantedLevel][playerid] > 1) { if(Var[WantedLevel][playerid] >= 1) { if(gTeam[playerid] == 3) { gTeam[playerid] = 4; } } format(wantedmes, sizeof(wantedmes), "Current Wanted Level: %d", Var[WantedLevel][playerid]); SCM(playerid, COLOR_YELLOW, wantedmes); for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(PlayerInfo[pMember] == 1||PlayerInfo[pLeader] == 1) { format(cbjstore, sizeof(turnmes), "HQ: All Units APB: News Reporter: %s",turner); SCM(i, TEAM_BLUE_COLOR, cbjstore); format(cbjstore, sizeof(turnmes), "HQ: Crime: %s, Suspect: %s",reason,turned); SCM(i, TEAM_BLUE_COLOR, cbjstore); } } } } }//not connected } }[/pawn] [pawn]if(victimteam >= 4) { if(IsPlayerConnected(killerid)) { //new killer[MAX_PLAYER_NAME]; //GetPlayerName(killerid, killer, sizeof(killer)); new slice = 100; //$100 playercash = GetPlayerMoney(playerid); if(gTeam[killerid] != 2) { Var[WantedLevel][killerid] += 2; } //+ 2 wanted points if(Var[safeTime][playerid] <= 0) { if(gTeam[killerid] != gTeam[playerid]) { if(GetPlayerState(killerid) == 1) { PlayerInfo[killerid][pKills] = PlayerInfo[killerid][pKills]+2; } else { PlayerInfo[killerid][pKills]++; } PlayerInfo[playerid][pKills]--; } } if (((gTeam[killerid]) == 1) || ((gTeam[killerid]) == 3 && civnokill) || (gTeam[killerid] == gTeam[playerid] && gTeam[playerid] != 4)) { slice = 0; } if (((gTeam[killerid]) != 4) && ((gTeam[killerid]) == gTeam[playerid]))//no team kill { slice = 0; } if (playercash > 0) { GivePlayerMoney(playerid, -slice); } else { slice = slice+500; } GivePlayerMoney(killerid, slice); //GameTextForPlayer(playerid, dmessage, 5000, 2); PlayerPlaySound(killerid, 1083, 0.0, 0.0, 0.0); if (((gTeam[killerid]) == 3) && reason != 49) { SetPlayerCriminal(killerid,255, "First Degree Murder"); } else if (((gTeam[killerid]) == 3) && reason == 49) { SetPlayerCriminal(killerid,255, "Hit And Run"); } } } else if (victimteam == 2) { if(IsPlayerConnected(killerid)) { //new killer[MAX_PLAYER_NAME]; //PlayerName(killerid, killer, sizeof(killer)); // Cop kill PlayerInfo[playerid][pKills]--; if (gTeam[killerid] == 2)//cops kill cop { //format(string,128,".: Officer %s murdered Officer %s (%s) and was sued for $%d :.",killer,name,deathreason,suecost); PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0); GivePlayerMoney(killerid, -suecost); GivePlayerMoney(playerid, suecost+100);//+100pays hospital bill } else { //format(string,128,".: %s murdered Officer %s (%s) :.",killer,name,deathreason); } if (gTeam[killerid] >= 3) { Var[WantedLevel][killerid] += 2; //+ 2 wanted points if(reason != 49) { SetPlayerCriminal(killerid,255, "First Degree Murder"); } else if (reason == 49) { SetPlayerCriminal(killerid,255, "Hit And Run"); } } if(gTeam[killerid] >= 5 && Var[safeTime][playerid] <= 0) { if(GetPlayerState(killerid) == 1) { PlayerInfo[killerid][pKills] = PlayerInfo[killerid][pKills]+2; } else { PlayerInfo[killerid][pKills]++; } Var[WantedLevel][killerid]+=2; } //BroadCast(COLOR_RED, string); } } else if (victimteam == 3) { if(IsPlayerConnected(killerid)) { //new killer[MAX_PLAYER_NAME]; //GetPlayerName(killerid, killer, sizeof(killer)); // Civ kill if ((gTeam[killerid]) == 2)//cops kill civ { if(Var[WantedLevel][playerid] < 1) { //format(string,128,".: Officer %s murdered %s (%s) and was sued for $%d :.",killer,name,deathreason,suecost); PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0); GivePlayerMoney(killerid, -suecost); GivePlayerMoney(playerid, suecost+100);//+100pays hospital bill } } else { //format(string,128,".: %s murdered %s (%s) :.",killer,name,deathreason); Var[WantedLevel][killerid] += 2; } if (((gTeam[killerid]) >= 3 || (gTeam[killerid]) == 1) && reason != 49) { SetPlayerCriminal(killerid,255, "First Degree Murder"); } else if (((gTeam[killerid]) >= 3 || (gTeam[killerid]) == 1) && reason == 49) { SetPlayerCriminal(killerid,255, "Hit And Run"); } //BroadCast(COLOR_RED, string); } } else if (victimteam == 1) { if(IsPlayerConnected(killerid)) { //new killer[MAX_PLAYER_NAME]; //GetPlayerName(killerid, killer, sizeof(killer)); // Civ kill if ((gTeam[killerid]) == 2)//cops kill civ { //format(string,128,".: Officer %s murdered Paramedic %s (%s) and was sued for $%d :.",killer,name,deathreason,suecost); PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0); GivePlayerMoney(killerid, -suecost); GivePlayerMoney(playerid, suecost+100);//+100pays hospital bill } else if ((gTeam[killerid]) == 1)//med kill civ { //format(string,128,".: Paramedic %s murdered %s (%s) and was sued for $%d :.",killer,name,deathreason,suecost); PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0); GivePlayerMoney(killerid, -suecost); GivePlayerMoney(playerid, suecost+100);//+100pays hospital bill } else { //format(string,128,".: %s murdered %s (%s) :.",killer,name,deathreason); } if (((gTeam[killerid]) == 4) && reason != 49) { SetPlayerCriminal(killerid,255, "First Degree Murder"); } else if (((gTeam[killerid]) == 3) && reason == 49) { SetPlayerCriminal(killerid,255, "Hit And Run"); } //BroadCast(COLOR_RED, string); } } return 1; }[/pawn] Daca ma puteti ajuta , as fi foarte recunoscator
  15. Cand aprinsi samp-server se inchide imediat nu ? Daca da vezi ca e versiunea v0.3d-R2, ©2005-2011 SA-MP Team , ia versiunea 0.3x pentru server
×
×
  • 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.