calin1996
Membru-
Posts
177 -
Joined
-
Last visited
Content Type
Profiles
Forums
News
Documentation
Everything posted by calin1996
-
De unde sa-ti spuna? A modificat el sciptul? /:) http://forum.sa-mp.com/showthread.php?t=291018
-
Bine bai "scriptere", daca indepartezi TOT ce tine de mysql ai bulit tot gamemodul. Cum ti se mai salveaza ba datele? Numai scripteri pe forumul asta :-j Mai bine stai cuminte, ca sa treci de pe mysql pe INI NU are rost! Merge greu + necesita ceva timp.
-
Am vazut, functia este corecta, poate ai omis tu ceva. O sa revin cu un edit.
-
Da acel s mic era, parametrul era Shooter iar eu am scris shooter Bine ca nu ai facut cum tia zis Adrian ala, ca iti dadea o gramada de erori )
-
Pune asta! [pawn] public OnPlayerShootPlayer(Shooter,Target,Float:HealthLost,Float:ArmourLost) { if(GetPlayerWeapon(Shooter) == 34) { if(PlayerData[shooter][pMember] == 8) { SetPlayerHealth(Target, 0); } } return 1; }[/pawn]
-
Vezi ca am mai postat odata! Ai incercat?
-
Daca pui un singur =, inseamna ca ii setezi valoarea aia, ceea ce NU poti face intr-un if. [pawn] public OnPlayerShootPlayer(Shooter,Target,Float:HealthLost,Float:ArmourLost) { if(GetPlayerWeapon(Shooter) == 34) { if (PlayerInfo[shooter][pMember] == 8) { SetPlayerHealth(Target, 0); } } return 1; }[/pawn] Vezi ca te-ai murdarit de scripting la bot, esti total paralel. Daca ai parametrul Shooter in callback, de ce naiba ii faci string separat?? /:)
-
OFF: Ba inteligentule, callback-ul ala are deja setat ca parametru Shooter, de ce draci ii faci string??, NU l-am pus cum litera mare( in loc de Shooters am pus shooter) de aia ii da eroare. Esti total paralel cu scriptingul!!! ON: Incearca acum: [pawn]awno Code: [select] public OnPlayerShootPlayer(Shooter,Target,Float:HealthLost,Float:ArmourLost) { if(GetPlayerWeapon(Shooter) == 34) { if(PlayerData[shooter][pMember] == 8) { SetPlayerHealth(Target, 0); } } return 1; }[/pawn]
-
[pawn]public OnPlayerShootPlayer(Shooter,Target,Float:HealthLost,Float:ArmourLost) { if(GetPlayerWeapon(Shooter) == 34) { if(PlayerInfo[shooter][pMember] = IDFACTIUNIIHITMAN) { SetPlayerHealth(Target, 0); } } return 1; }[/pawn] Cum se numeste enumul pentru playeri? Gen: PlayerInfo
-
"Cine imi face si mie ca nu am destula creativitate si mi-e lene sa caut pe google o functie" [pawn]public OnPlayerShootPlayer(Shooter,Target,Float:HealthLost,Float:ArmourLost) { if(GetPlayerWeapon(Shooter) == 34) { if(PlayerInfo[shooter][pMember] = IDFACTIUNIIHITMAN) { SetPlayerHealth(Target, 0); } } return 1; }[/pawn] http://forum.sa-mp.com/showthread.php?p=937824 Downloadeaza INCLUDEUL, Baga-l in folderul pawn/includes si in gamemode.
-
Problema: 3DTexte cele de pe server + case
calin1996 replied to Alexandru's question in Arhivă probleme
Asta ai spus si tu nu?? Iarasi te-ai facut mincinos si ai facut OFF-TOPIC, M-am laudat eu pe mess ca am intrat cu sob.eit pe un server cu anti sob.eit? Te-ai facut singur "mancator de rahat" mai vrei moderator :-j ON: Contacteaza-ma pe yahoo, am id-ul la profil. Te pot ajuta. -
Sterge JUMATATE DIN TEXT DIN ultimele 8 3dlabel,compileaza si vezi daca iti apar.
-
Pai atunci posteaza ENUMURILE playerilor din acel FS. Nu inteleg ce cauta PlayerInfo acolo. De ce nu ai postat ce ai vrut sa faci sa stim ce sa-ti cerem sa postezi?
-
Lasa-te de scripting ca esti PARALEL! ON: Ia fiecare 3dtext la rand si vezi daca respecta functia http://wiki.sa-mp.com/wiki/Create3DTextLabel
-
Problema: 3DTexte cele de pe server + case
calin1996 replied to Alexandru's question in Arhivă probleme
Nu o poti seta, scri pe google samp limits (parca) si vezi limitele 3dlabel,string,etc -
Posteaza comanda /levelup sau /buylevel sa vedem cu ai variabilele trecute.
-
Problema: 3DTexte cele de pe server + case
calin1996 replied to Alexandru's question in Arhivă probleme
Ai intrecut limita de 3d texte pe server, de aia nu iti mai apar, nu te mai lua dupa "scripterii" astia care posteaza ca sunt total paraleli. Cate case ai pe server? Folosesti cumva Create3dtext intr-un loop mare? Posteaza enumul HouseInfo tot. -
Gamemodul trebuie sa fie MYSQL Si sa ai cunostiinte in PHP (CRED). Nu e ceva usor. PS: Se gasesc pe net diferite UCP uri.
-
Din cate stiu eu, utilizatorii de JB TREBUIE sa introduca inclue ul JUNKBUSTER in TOATE FS urile.
-
Iauzi ma? tu nu ai timp de mysql? Tu nu stii nici macar un LOOP sa-l faci singur si te bagi la mysql?)) ON: Da-mi PM cu id ul tau, iti spun eu ce este de facut.
-
Cine le are cu mysql? as avea si eu nevoie de putin ajutor
-
Nu stiai? Sampul din prezent este doar de "fa si mie".
-
"fa si mie ca-s but" asta a devenit sampu, si voi moderatorilor si adminilor daca deja incepeti cu activitatea asta, iara cresc buruieni in samp.ro Cer t/c
-
Aceasta este comanda: [pawn] if(strcmp(cmd, "/contract", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /contract [playerid/PartOfName] [amount]"); return 1; } giveplayerid = ReturnUser(tmp); tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /contract [playerid/PartOfName] [amount]"); return 1; } moneys = strval(tmp); if(moneys < 1000 || moneys > 1000000) { SendClientMessage(playerid, COLOR_GREY, " Contract money must be atleast $1000, and not more then $1000000!"); return 1; } if(PlayerInfo[playerid][pLevel] < 2) { SendClientMessage(playerid, COLOR_GRAD1, "You must be level 2 to place a Contract."); return 1; } if (IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { if(PlayerInfo[giveplayerid][pMember] == 8 && PlayerInfo[playerid][pMember] == 8) { SendClientMessage(playerid, COLOR_GREY, "* Cannot place Contracts on your own Agency!"); return 1; } else if(PlayerInfo[giveplayerid][pLeader] == 8 && PlayerInfo[playerid][pMember] == 8) { SendClientMessage(playerid, COLOR_GREY, "* Cannot place Contracts on your own Agency!"); return 1; } else if(PlayerInfo[giveplayerid][pMember] == 8||PlayerInfo[giveplayerid][pLeader] == 8) { SendClientMessage(playerid, COLOR_GREY, "* Can't contract a Hitman !"); return 1; } if(PlayerInfo[playerid][pAdmin] == 1) { SendClientMessage(playerid, COLOR_GREY, "* You may not place a contract on admin/testers on duty"); return 1; } if(IsACop(giveplayerid) && moneys < 30000) { SendClientMessage(playerid, COLOR_GREY, "* Only $30000 or above can be placed as a Contract on Cops !"); return 1; } if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "* You cannot Contract yourself!"); return 1; } GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); playermoney = GetPlayerMoney(playerid); if (moneys > 0 && playermoney >= moneys) { SafeGivePlayerMoney(playerid, (0 - moneys)); PlayerInfo[giveplayerid][pHeadValue]+=moneys; format(string, sizeof(string), "%s has placed a contract on %s, for $%d.",sendername, giveplayer, moneys); SendFamilyMessage(8, COLOR_YELLOW, string); format(string, sizeof(string), "* You placed a contract on %s, for $%d.",giveplayer, moneys); SendClientMessage(playerid, COLOR_WHITE, string); format(string, sizeof(string), "[iNFO]: %s (%d) has placed a contract on %s (%d) for $%d", sendername, playerid, giveplayer,giveplayerid, moneys); SendAdminMessage(COLOR_YELLOW,string); SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, "* Someone has placed a hit contract on you, you might want protection!"); PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); } else { SendClientMessage(playerid, COLOR_GRAD1, " Invalid transaction amount."); } } } else { format(string, sizeof(string), " %d is not an active player.", giveplayerid); SendClientMessage(playerid, COLOR_GRAD1, string); } } return 1; } SendClientMessage(playerid,COLOR_GREY, "SERVER: You have Typed An Unknown Command, Type /help or /atalk if you need Help!"); return 1; }[/pawn]
-
Ori ai pe server.cfg adaugat un format de fisier gresit,ori fisierul existent are alt format