Jump to content

wifi123

Membru
  • Posts

    37
  • Joined

  • Last visited

Everything posted by wifi123

  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. 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
  14. 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
  15. 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
  16. Salut SA-MP.Ro am si eu o problema cu sistemu de masini personale din gm-ul meu, am aceste linii: [pawn] new vehicleid = GetPlayerVehicleID(playerid); GetPlayerName(playerid, pname, sizeof pname); if(newstate == PLAYER_STATE_DRIVER) { if(vehicleid == phoenixa) { if(strcmp(pname, "WiFi", true) ==0) { return 1; } else { RemovePlayerFromVehicle(playerid); SendClientMessage(playerid,red,"This car is Owned by WiFi."); } } }[/pawn] [pawn] phoenixa = CreateVehicle(603,-24.6473,1893.7428,17.4348,266.3062,3,3, 7200);[/pawn] [pawn]new phoenixa;[/pawn] Cum fac sa adaug sa apara numele ownerului in afara masini si sa adaug o comanda de teleport catre masina privata ?
  17. [pawn]public LoadProperty() { new arrCoords[27][64]; new strFromFile2[256]; new File: ppfile = fopen("property.cfg", io_read); if (ppfile) { new idx; while (idx < sizeof(HouseInfo)) { fread(ppfile, strFromFile2); split(strFromFile2, arrCoords, ','); HouseInfo[idx][hEntrancex] = floatstr(arrCoords[0]); HouseInfo[idx][hEntrancey] = floatstr(arrCoords[1]); HouseInfo[idx][hEntrancez] = floatstr(arrCoords[2]); HouseInfo[idx][hExitx] = floatstr(arrCoords[3]); HouseInfo[idx][hExity] = floatstr(arrCoords[4]); HouseInfo[idx][hExitz] = floatstr(arrCoords[5]); strmid(HouseInfo[idx][hOwner], arrCoords[6], 0, strlen(arrCoords[6]), 255); strmid(HouseInfo[idx][hDiscription], arrCoords[7], 0, strlen(arrCoords[7]), 255); HouseInfo[idx][hValue] = strval(arrCoords[8]); HouseInfo[idx][hHel] = strval(arrCoords[9]); HouseInfo[idx][hArm] = strval(arrCoords[10]); HouseInfo[idx][hInt] = strval(arrCoords[11]); HouseInfo[idx][hLock] = strval(arrCoords[12]); HouseInfo[idx][hOwned] = strval(arrCoords[13]); HouseInfo[idx][hRooms] = strval(arrCoords[14]); HouseInfo[idx][hRent] = strval(arrCoords[15]); HouseInfo[idx][hRentabil] = strval(arrCoords[16]); HouseInfo[idx][hTakings] = strval(arrCoords[17]); HouseInfo[idx][hVec] = strval(arrCoords[18]); if(HouseInfo[idx][hVec] == 457) { HouseInfo[idx][hVec] = 411; } HouseInfo[idx][hVcol1] = strval(arrCoords[19]); HouseInfo[idx][hVcol2] = strval(arrCoords[20]); HouseInfo[idx][hDate] = strval(arrCoords[21]); HouseInfo[idx][hLevel] = strval(arrCoords[22]); HouseInfo[idx][hCPx] = floatstr(arrCoords[23]); HouseInfo[idx][hCPy] = floatstr(arrCoords[24]); HouseInfo[idx][hCPz] = floatstr(arrCoords[25]); HouseInfo[idx][hvw] = strval(arrCoords[26]); printf("HouseInfo:%d Owner:%s hTakings %d hVec %d",idx,HouseInfo[idx][hOwner],HouseInfo[idx][hTakings],HouseInfo[idx][hVec]); idx++; } fclose(ppfile); } return 1; } [/pawn]
  18. [pawn][11:46:14] HouseInfo:0 Owner:The State hTakings 10304 hVec 418 [11:46:14] HouseInfo:1 Owner:The State hTakings 23115 hVec 418 [11:46:14] HouseInfo:2 Owner:The State hTakings 12755 hVec 418 [11:46:14] HouseInfo:3 Owner:The State hTakings 595892 hVec 418 [11:46:14] HouseInfo:4 Owner:The State hTakings 12 hVec 418 [11:46:14] HouseInfo:5 Owner:The State hTakings 9800 hVec 418 [11:46:14] HouseInfo:6 Owner:The State hTakings 0 hVec 418 [11:46:14] HouseInfo:7 Owner:The State hTakings 2500 hVec 418 [11:46:14] HouseInfo:8 Owner:DarkAngel hTakings 4700 hVec 418 [11:46:14] HouseInfo:9 Owner:The State hTakings 1350 hVec 418 [11:46:14] HouseInfo:10 Owner:The State hTakings 200 hVec 418 [11:46:14] HouseInfo:11 Owner:The State hTakings 0 hVec 418 [11:46:14] HouseInfo:12 Owner:The State hTakings 0 hVec 418 [11:46:14] HouseInfo:13 Owner:The State hTakings 100 hVec 418 [11:46:14] HouseInfo:14 Owner:The State hTakings 0 hVec 418 [11:46:14] HouseInfo:15 Owner:The State hTakings 0 hVec 418 [11:46:14] HouseInfo:16 Owner:The State hTakings 0 hVec 418 [11:46:14] HouseInfo:17 Owner:The State hTakings 12372 hVec 418 [11:46:14] HouseInfo:18 Owner:The State hTakings 500 hVec 418 [11:46:14] HouseInfo:19 Owner:The State hTakings 0 hVec 418 [11:46:14] HouseInfo:20 Owner:The State hTakings 4014 hVec 418 [11:46:14] HouseInfo:21 Owner:The State hTakings 1741 hVec 418 [11:46:14] HouseInfo:22 Owner:The State hTakings 6300 hVec 418 [11:46:14] HouseInfo:23 Owner:ChiefZ0r hTakings 27000 hVec 480 [11:46:14] HouseInfo:24 Owner:The State hTakings 0 hVec 418 [11:46:14] HouseInfo:25 Owner:The State hTakings 0 hVec 418 [11:46:14] HouseInfo:26 Owner:The State hTakings 47 hVec 418 [11:46:14] HouseInfo:27 Owner:SaSWeB hTakings 0 hVec 418 [11:46:14] HouseInfo:28 Owner:The State hTakings 590 hVec 418 [11:46:14] HouseInfo:29 Owner:The State hTakings 0 hVec 418 [11:46:14] HouseInfo:30 Owner:The State hTakings 3050 hVec 418 [11:46:14] HouseInfo:31 Owner:The State hTakings 0 hVec 418 [11:46:14] HouseInfo:32 Owner:The State hTakings 1999 hVec 418 [11:46:14] HouseInfo:33 Owner:The State hTakings 13 hVec 418 [11:46:14] HouseInfo:34 Owner:The State hTakings 10568 hVec 418 [11:46:14] HouseInfo:35 Owner:The State hTakings 600 hVec 418 [11:46:14] HouseInfo:36 Owner:The State hTakings 14700 hVec 418 [11:46:14] HouseInfo:37 Owner:The State hTakings 0 hVec 418 [11:46:14] HouseInfo:38 Owner:The State hTakings 60250 hVec 418 [11:46:14] HouseInfo:39 Owner:The State hTakings 0 hVec 418 [11:46:14] HouseInfo:40 Owner:The State hTakings 300 hVec 418 [11:46:14] HouseInfo:41 Owner:The State hTakings 1 hVec 418 [11:46:14] HouseInfo:42 Owner:The State hTakings 26100 hVec 418 [11:46:14] HouseInfo:43 Owner:The State hTakings 45381 hVec 418 [11:46:14] HouseInfo:44 Owner:The State hTakings 9500 hVec 418 [11:46:14] HouseInfo:45 Owner:The State hTakings 69993 hVec 418 [11:46:14] HouseInfo:46 Owner:The State hTakings 14900 hVec 418 [11:46:14] HouseInfo:47 Owner:The State hTakings 0 hVec 418 [11:46:14] HouseInfo:48 Owner:The State hTakings 9600 hVec 418 [11:46:14] HouseInfo:49 Owner:The State hTakings 0 hVec 418 [11:46:14] HouseInfo:50 Owner:The State hTakings 12000 hVec 418 [11:46:14] HouseInfo:51 Owner:Appl3 hTakings 293971 hVec 541 [11:46:14] HouseInfo:52 Owner:DeepDeejays hTakings 2000 hVec 411 [11:46:14] HouseInfo:53 Owner:The State hTakings 10900 hVec 418 [11:46:14] HouseInfo:54 Owner:The State hTakings 2400 hVec 418 [11:46:14] HouseInfo:55 Owner:Gb0rulCriminal hTakings 0 hVec 411 [11:46:14] HouseInfo:56 Owner:The State hTakings 100 hVec 418 [11:46:14] HouseInfo:57 Owner:The State hTakings 0 hVec 418 [11:46:14] HouseInfo:58 Owner:The State hTakings 27913 hVec 418 [11:46:14] HouseInfo:59 Owner:The State hTakings 449 hVec 418 [11:46:14] HouseInfo:60 Owner:The State hTakings 0 hVec 418 [11:46:14] HouseInfo:61 Owner:The State hTakings 59427 hVec 418 [11:46:14] HouseInfo:62 Owner:The State hTakings 9550 hVec 418 [11:46:14] HouseInfo:63 Owner:The State hTakings 0 hVec 418 [11:46:14] HouseInfo:64 Owner:The State hTakings 0 hVec 418 [11:46:14] HouseInfo:65 Owner:The State hTakings 3000 hVec 418 [11:46:14] HouseInfo:66 Owner:The State hTakings 43 hVec 418 [11:46:14] HouseInfo:67 Owner:The State hTakings 1 hVec 418 [11:46:14] HouseInfo:68 Owner:The State hTakings 0 hVec 418 [11:46:14] HouseInfo:69 Owner:The State hTakings 5200 hVec 418 [11:46:14] HouseInfo:70 Owner:The State hTakings 1000 hVec 418 [11:46:14] HouseInfo:71 Owner:The State hTakings 4000 hVec 418 [11:46:14] HouseInfo:72 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:73 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:74 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:75 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:76 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:77 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:78 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:79 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:80 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:81 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:82 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:83 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:84 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:85 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:86 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:87 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:88 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:89 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:90 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:91 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:92 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:93 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:94 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:95 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:96 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:97 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:98 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:99 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:100 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:101 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:102 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:103 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:104 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:105 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:106 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:107 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:108 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:109 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:110 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:111 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:112 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:113 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:114 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:115 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:116 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:117 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:118 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:119 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:120 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:121 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:122 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:123 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:124 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:125 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:126 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:127 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:128 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:129 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:130 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:131 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:132 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:133 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:134 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:135 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:136 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:137 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:138 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:139 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:140 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:141 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:142 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:143 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:144 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:145 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:146 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:147 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:148 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:149 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:150 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:151 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:152 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:153 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:154 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:155 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:156 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:157 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:158 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:159 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:160 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:161 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:162 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:163 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:164 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:165 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:166 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:167 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:168 Owner:The State hTakings 976 hVec 418 [11:46:14] HouseInfo:169 Owner:The State hTakings 976 hVec 418 [11:46:14] BizzInfo:0 Owner:Kenzzo Message:~w~Gun Shop 1 Entfee:2000 Till:30450052 Products:99999555/500 Interior:1. [11:46:14] BizzInfo:1 Owner:The State Message:~w~Gun Shop 2 Entfee:0 Till:0 Products:100/500 Interior:0. [11:46:14] BizzInfo:2 Owner:The State Message:~w~Restaurant Entfee:0 Till:0 Products:9999999/500 Interior:1. [11:46:14] BizzInfo:3 Owner:The State Message:~B~ [][] Police ~G~ Armoury[][] Entfee:0 Till:82389651 Products:99995433/500 Interior:10. [11:46:14] BizzInfo:4 Owner:ThEbLAcK Message:Banca LS Entfee:100 Till:12100 Products:9999486/100000 Interior:0. [11:46:14] SBizzInfo:0 Owner:ionut Message:Rent Car LS (ionut & Vladd) Entfee:1000 Till:51800 Products:999901/100 Interior:0. [11:46:14] SBizzInfo:1 Owner:V1Ru55 Message:Rent Car SF Entfee:9999 Till:107508346 Products:9999159/100 Interior:0. [11:46:14] SBizzInfo:2 Owner:DydutzZ Message:Hai cu /w TATA!!! Entfee:100 Till:83989580 Products:100/100 Interior:0. [11:46:14] SBizzInfo:3 Owner:Ge0. Message:--> Gas Company <-- Entfee:20 Till:180226978 Products:100/100 Interior:0. [11:46:14] SBizzInfo:4 Owner:Willy Message:Anda&Willy LOVE Entfee:9999 Till:14606403 Products:100/100 Interior:0. [11:46:14] SBizzInfo:5 Owner:Vladd Message:~~~Masina de Bani~~~ ($_$) CarUpGrade! Entfee:200 Till:75842500 Products:-439/100 Interior:0. [11:46:14] SBizzInfo:6 Owner:NEW Message:--House UpGrade (...) Entfee:9999 Till:90000 Products:-4/100 Interior:0. [11:46:14] SBizzInfo:7 Owner:Ades. Message:CNn Ades. Entfee:9999 Till:2328640 Products:100/100 Interior:0. [11:46:14] SBizzInfo:8 Owner:Ayda Message:Ayda&WIlly LOVE:X:X Entfee:9999 Till:88800 Products:-247/100 Interior:0. [11:46:14] SBizzInfo:9 Owner:AgenTuL Message:Biz 24/7 The Best Entfee:9999 Till:45765 Products:-21/100 Interior:0. [11:46:14] SBizzInfo:10 Owner:eXceSS Message:Faceti DM in eXceSS xD Entfee:9999 Till:53569 Products:107662/100 Interior:0. [11:46:14] SBizzInfo:11 Owner:TeKo Message:~w~Kart Track Entfee:1999 Till:60005997 Products:99996/100 Interior:0. [11:46:14] SBizzInfo:12 Owner:mr_pr0 Message:Cumparat cele mai bune barci rent boat LS de la mr_pr0 Entfee:5000 Till:959245178 Products:-57/100 Interior:0. [11:46:14] SBizzInfo:13 Owner:The State Message:DECATHLON Entfee:1200 Till:0 Products:-133/100 Interior:0. [11:46:14] SBizzInfo:14 Owner:The State Message:DECATHLON Entfee:1200 Till:4800 Products:-133/100 Interior:0. [11:46:14] MatsShopInfo: 9800299 materials. [11:46:14] DrugsShopInfo 0 Drugs.[/pawn]
  19. property.cfg cum fac sa adaug case noi in el ?
  20. Salut am acest cfg in scriptfiles.Cum fac sa il resetez si sa adaug case noi ? [pawn]-2700.438720,820.758483,49.984401,245.300506,304.993194,999.148376,DrOOpY,Trailer,5,0,0,1,0,1,0,20000,1,20000,418,-1,-1,120,5,243.718795,305.009490,999.148376,100 2394.861083,0.000000,49.984401,245.300506,304.993194,999.148376,DrOOpY,Trailer,5,0,0,1,0,1,0,20000,1,20000,418,-1,-1,120,5,243.718795,305.009490,999.148376,100 0.000000,0.000000,49.984401,245.300506,304.993194,999.148376,DrOOpY,Trailer,5,0,0,1,0,1,0,20000,1,20000,418,-1,-1,120,5,243.718795,305.009490,999.148376,100 0.000000,0.000000,49.984401,245.300506,304.993194,999.148376,DrOOpY,Trailer,5,0,0,1,0,1,0,20000,1,20000,418,-1,-1,120,5,243.718795,305.009490,999.148376,100 0.000000,0.000000,49.984401,245.300506,304.993194,999.148376,DrOOpY,Trailer,5,0,0,1,0,1,0,20000,1,20000,418,-1,-1,120,5,243.718795,305.009490,999.148376,100 1133.565551,30.718799,245.300506,304.993194,999.148376,0.000000,Trailer,275000,1,1,1,1,1,0,1,1,5677,418,-1,-1,120,5,243,305.009490,999.148376,101.000000,100 -2642.135742,728.034484,27.960899,269.304107,304.739685,999.148376,Tpx, Bedsit,540000,0,0,2,1,1,1,5000,5000,5552,418,-1,-1,120,5,266.498596,304.942108,999.148376,102 1111.565429,-976.129516,42.765598,302.075500,310.021606,1003.304687,Mosu, Bedsit,1,0,0,4,1,1,1,100,1,24707,418,-1,-1,120,7,299.780212,309.978912,1003.304687,103 2486.508300,-2021.116943,13.998800,345.913085,304.996795,999.148376,The State, Bedsit,1000000000,0,0,6,1,0,0,1,1,43474,418,-1,-1,120,3,343.717987,304.977691,999.148376,104 2652.780761,-1989.641357,13.998800,246.785797,304.829406,999.148376,The State,2 Room Apartment,1000000000,0,0,1,1,0,1,1,1,28,418,-1,-1,120,3,243.719894,305.041687,999.148376,105 -2722.041259,923.907775,67.593803,-42.609600,1407.843750,1084.429687,Se7eN,3 Room Bungalow,1,0,0,8,1,1,1,100,1,3300,418,-1,-1,120,5,-42.564300,1405.469116,1084.429687,106 1906.019531,-1112.958618,26.664100,2466.780517,-1698.304321,1013.507812,cosmin,3 Room Bungalow,1,0,0,2,1,1,1,1,1,1,418,-1,-1,120,5,2468.842041,-1698.259155,1013.507812,107 989.805480,-828.654418,95.468597,384.891693,1471.697387,1080.194946,ValyWtf,3 Room Apartment,6000000,0,0,15,1,1,1,69,1,1759,418,-1,-1,120,7,387.222198,1471.715209,1080.194946,108 2068.198486,-1628.912231,13.876194,221.987503,1142.864868,1082.609375,ZyGhy,3 Room Apartment,1,0,0,4,1,1,1,1000,1,21037,418,-1,-1,120,5,221.902603,1140.195678,1082.609375,109 769.228576,-1696.517211,5.155395,260.814086,1239.636474,1084.257812,sTaR92,4 Room Apartment,1,1,0,9,0,1,0,1,1,33184,418,-1,-1,120,5,260.819488,1237.231933,1084.257812,110 652.694396,-1619.795166,15.000000,261.056610,1286.326049,1080.257812,FlouReGe,4 Room House,1500000,0,0,4,1,1,0,5,1,46302,418,-1,-1,120,5,261.032501,1284.294799,1080.257812,111 -2641.144287,935.170288,71.953102,745.299987,1437.699951,1102.699951,harigon,4 Room Apartment,550000,0,0,6,1,1,0,20000,1,141000,418,-1,-1,120,5,744.423583,1436.339721,1102.703125,112 -2655.516845,986.078613,64.991302,375.221984,1417.385620,1081.328125,The State,4 Room Apartment,100000000,0,0,15,1,0,0,1,1,481500,418,-1,-1,120,7,377.155914,1417.340332,1081.328125,113 692.892883,-1602.774291,15.046895,24.240699,1342.495971,1084.375000,FlaviuS_GL,4 Room House,1,0,0,10,1,1,0,1000,1,73089,418,-1,-1,120,10,24.043600,1340.161010,1084.375000,114 2283.789306,-1046.485961,49.887100,2261.182617,-1135.899780,1050.632812,CreTs.oNe,4 Room Bedsit,1,1,0,10,0,1,0,69,1,11747,418,-1,-1,120,5,2259.382080,-1135.886474,1050.640258,115 2847.451171,-1309.761352,14.700900,223.188796,1288.775024,1082.132812,Izzy,4 Room Apartment,1000000,0,0,1,1,1,0,20000,1,20115,418,-1,-1,120,7,223.131393,1287.075683,1082.140625,116 2141.279785,-1801.920898,16.147499,22.861000,1405.355590,1084.429687,The State,4 Room House,1000000000,0,0,5,1,0,0,12,1,4002,418,-1,-1,120,7,22.854000,1403.325195,1084.437011,117 -2688.324951,137.099594,4.342597,235.270294,1188.609375,1080.257812,SeBy_GT,4 Room House,5000000,1,0,3,1,1,1,10,1,100,418,-1,-1,120,7,235.303207,1186.681518,1080.257812,118 -2710.734619,967.965087,54.460899,447.035095,1399.396240,1084.304687,The State,5 Room Apartment,1000000000,0,0,2,1,0,0,1,1,25180,418,-1,-1,120,5,447.079986,1397.064086,1084.304687,119 1496.900024,-689.099975,95.099998,234.246307,1066.101440,1084.208740,sTaRLif3,5 Room House,60000000,0,0,6,1,1,0,1,1,398,418,-1,-1,120,15,234.132003,1063.721435,1084.212280,120 1243.000000,-1100.900024,27.899999,328.071685,1479.388061,1084.437500,The State,5 Room Slum,1000000,0,0,15,1,0,0,1,1,839,418,-1,-1,120,7,327.973388,1477.724609,1084.437500,121 827.900024,-858.500000,70.300003,295.237915,1474.111938,1080.257812,valibc,5 Room Apartment,1,0,0,15,1,1,0,10,1,524,418,-1,-1,120,7,295.111511,1472.258178,1080.257812,122 980.165100,-676.681396,121.976303,140.250396,1368.056884,1083.862426,SisoSilz,6 Room House,1,0,0,5,1,1,0,1000,1,2300,418,-1,-1,120,15,140.282592,1365.921508,1083.859375,123 1112.202392,-742.073120,100.132896,491.200500,1401.166015,1080.264526,TeGLas,6 Room Luxury,10000000,0,0,2,1,1,0,100,1,12057,418,-1,-1,120,7,491.180389,1398.499633,1080.257812,124 251.581802,-1220.396606,76.102401,83.121299,1324.658081,1083.859375,Adrenalina,6 Room House,1,1,0,9,1,1,0,69,1,207,418,-1,-1,120,15,83.029998,1322.281005,1083.866210,125 1468.616333,-905.802917,54.835899,228.512603,1114.228271,1080.992187,LilSmoke,7 Room Luxury,1,1,0,5,1,1,0,500,1,212062,418,-1,-1,120,7,226.295700,1114.251342,1080.992919,126 1421.821289,-885.876281,50.673400,225.747695,1023.986816,1084.007812,Claudiu,8 Room Luxury,43000000,0,0,7,1,1,0,1,1,151268,418,-1,-1,120,10,225.748901,1021.445373,1084.017700,127 -2523.694824,2239.252685,5.398396,-285.616485,1471.085449,1084.375000,Petre,4 Room Luxury,3250000,0,0,15,1,1,0,500,40,0,418,-1,-1,120,7,-283.445404,1471.040649,1084.375000,128 -2551.988281,2266.654541,5.475500,-262.876007,1456.729370,1084.367187,HaPpY,3 Room Luxury,1,0,0,4,0,1,0,5000,1,26503,418,-1,-1,120,5,-260.484710,1456.692382,1084.367187,129 -2379.456787,2444.236083,10.169400,-68.882797,1353.405029,1080.210937,b3stie,2 Room Luxury,1,0,0,6,1,1,0,1000,1,560,418,-1,-1,120,3,-68.841400,1351.205932,1080.210937,130 -2234.689697,888.874511,66.653099,2261.636230,-1135.841918,1050.632812,simonko,2 Room Luxury,1450000,0,0,10,0,1,0,1000,1,28620,418,-1,-1,120,5,2259.382812,-1135.876708,1050.640258,131 -2524.333007,-145.426498,21.817499,2261.485351,-1135.945922,1050.632812,LilSaint,3 Room Luxury,1,0,0,10,1,1,0,500,1,83792,418,-1,-1,120,5,2259.381835,-1135.898559,1050.640258,132 [/pawn]
  21. Salut , am si eu nevoie de ajutor. Am acest fisier in scriptfiles numit fuel si e in format tde cand in editez cu notepad arata asa: [pawn]TDFile=yes 0T_Created=1 0T_Text=Fuel: 0T_X=269.000000 0T_Y=433.000000 0T_UseBox=0 0T_TextSizeX=353.000000 0T_TextSizeY=79.000000 0T_Color=-1 0T_BackColor=255 0T_BoxColor=16777215 0T_Alignment=1 0T_XSize=0.470000 0T_YSize=1.100000 0T_Outline=0 1T_Created=1 1T_Text=100% 1T_X=344.000000 1T_Y=434.000000 1T_XSize=0.400000 1T_YSize=1.000000 1T_UseBox=1 1T_TextSizeX=277.000000 1T_TextSizeY=68.000000 1T_Alignment=2 1T_Color=-1 1T_BackColor=255 1T_BoxColor=16777215 1T_Outline=1 1T_Shadow=1 2T_Created=1 2T_Text= 2T_X=344.000000 2T_Y=434.000000 2T_Alignment=2 2T_BackColor=255 2T_UseBox=1 2T_BoxColor=65535 2T_TextSizeX=276.000000 2T_TextSizeY=-76.000000 2T_Color=-1 2T_Font=1 2T_XSize=0.400000 2T_YSize=1.000000 2T_Outline=1 2T_Proportional=1 2T_Shadow=1 [/pawn] Dar eu vreau sa fac altu gen asta: [pawn]public CheckStatus() { for(new i=0; i<MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(IsPlayerInAnyVehicle(i)) { if(TextShow == false) { TextDrawShowForPlayer(i, Text:Black0); TextDrawShowForPlayer(i, Text:Black1); TextDrawShowForPlayer(i, Text:Black2); TextDrawShowForPlayer(i, Text:Black3); TextDrawShowForPlayer(i, Text:LightBlack); TextShow = true; } new String[128]; new Float:X, Float:Y, Float:Z, Float:Speed; new vehicle = GetPlayerVehicleID(i); GetVehicleVelocity(GetPlayerVehicleID(i), X, Y, Z); Speed = floatmul(floatsqroot(floatadd(floatadd(floatpower(X, 2), floatpower(Y, 2)), floatpower(Z, 2))), 100.0); format(String,sizeof(String),"~b~ D-Board~n~~r~Fuel: ~w~%i~n~~r~km/h: ~w~%i", Gas[vehicle], floatround(Speed, floatround_floor)); if(VHSCreated == true) { TextDrawDestroy(VHS); } VHS = TextDrawCreate(541.000000,137.000000,String); TextDrawAlignment(VHS,0); TextDrawBackgroundColor(VHS,0x000000ff); TextDrawFont(VHS,1); TextDrawLetterSize(VHS,0.299999,1.000000); TextDrawColor(VHS,0xffffffff); TextDrawSetOutline(VHS,1); TextDrawSetProportional(VHS,1); TextDrawSetShadow(VHS,1); TextDrawShowForPlayer(i, VHS); VHSCreated = true; } else { if(TextShow == true) { TextDrawHideForPlayer(i, Text:Black0); TextDrawHideForPlayer(i, Text:Black1); TextDrawHideForPlayer(i, Text:Black2); TextDrawHideForPlayer(i, Text:Black3); TextDrawHideForPlayer(i, Text:LightBlack); TextDrawHideForPlayer(i, Text:VHS); TextShow = false; } } } } }[/pawn] CUM IL ADAUG IN GM ? SAU IN FISIERU ALA IN FORMAT TDE?
  22. Salut am si eu o problema la sistemul de masini personale. Comenzile sunt /v lock(1-7) /v park /v find /v foundit /v sellcarto..etc si vreau sa nu mai fie cu /v la inceput ci direct /lock /park /find /foundit /sellcarto...etc Uitati sistemu: http://pastebin.com/UpRef72C L-am pus in pastebin ca nu mergea sa postez ca are peste 50000 caractere
×
×
  • 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.