LaZ
V.I.P-
Posts
531 -
Joined
-
Last visited
-
Days Won
5
Content Type
Profiles
Forums
News
Documentation
Everything posted by LaZ
-
Atacurile DDoS (Distributed Denial of Service) sunt folosite pentru a inunda un server cu informatii false (milioane de bytes pe secunda) pana cand pica. La site-uri, informatiile inunda bandwidth-ul si userii nu mai pot intra pe acel site. Ca sa-ti protejezi serverul (cat de cat) trebuie sa ai o viteza mare la internet ( 1 GB / s, host-urile profesioniste ) si multa memorie in sistem. Cea mai buna protectie ii sa iti opresti serverul cateva minute sau sa afli IP-ul atacatorului si sa-l adaugi in Lista Neagra a Firewall-ului ca sa-i blochezi atacurile. Cam atat...
-
Codul sa-l pui intr-un fisier .pwn Cand vrei sa face asta, da-mi un PM.
-
LowRyder, stii de ce nu merg comenzile ? Ok... Nu stii... Mai jos ii scriptul reparat de bug-uri. [attachment deleted by admin]
-
:S... Era necesar sa postezi ?
-
Si-o spus parerea si tu sari la el de parca a facut ceva extrem de rau. Poate stie mai multe decat tine.
-
Deschide pawno.exe, 'New File', Exit si incerci din nou.
-
Ii foarte folositor. Puteti adauga 1000 de culori.
-
AddStaticVehicle(carid, coordonate); Aici ai grija. Daca pui coordonatele de la obiecte, te vei trezi cu masinile in rampe sau ce obiecte ai pus.
-
2406.044678, -2266.016357, 61.370602
-
#include <a_samp> #define FILTERSCRIPT #pragma tabsize 0 public OnFilterScriptInit() { CreateObject(1310, 2406.044678, -2266.016357, 61.370602, 0.0000, 0.0000, 0.0000); CreateObject(3361, 2411.412354, -2278.384277, 42.745335, 0.0000, 0.0000, 45.0000); CreateObject(3361, 2407.620117, -2282.191406, 46.355339, 0.0000, 0.0000, 45.0000); CreateObject(8040, 2373.581055, -2309.333008, 49.217285, 0.0000, 0.0000, 45.0000); CreateObject(18449, 2315.786865, -2363.705811, 54.357346, 0.0000, 0.0000, 45.0000); CreateObject(18449, 2262.869385, -2415.759277, 15.115066, 0.0000, 0.0000, 45.0000); CreateObject(18449, 2261.165527, -2417.489502, 57.871143, 0.0000, 5.1566, 44.1406); CreateObject(18449, 2211.973633, -2465.761719, 74.371460, 0.0000, 20.6265, 45.0000); CreateObject(18449, 2168.377686, -2510.701172, 108.038467, 0.0000, 36.9558, 46.7189); CreateObject(1634, 2343.382568, -2336.330811, 54.773399, 348.8273, 0.0000, 315.8594); CreateObject(1634, 2349.124023, -2330.444580, 58.648464, 10.3132, 0.0000, 315.8594); CreateObject(18449, 2394.110352, -2286.515381, 72.269287, 0.0000, 0.0000, 45.0000); CreateObject(1634, 2422.511475, -2257.913574, 72.885262, 353.1245, 0.0000, 314.1406); CreateObject(1634, 2491.178223, -2227.911621, 13.563873, 7.7349, 359.1406, 268.5905); CreateObject(1634, 2428.247803, -2252.407715, 76.165497, 1.7189, 0.0000, 313.2038); CreateObject(1634, 2432.047119, -2248.710938, 80.644035, 29.2208, 0.8594, 315.7821); CreateObject(1634, 2350.145996, -2336.215088, 52.823975, 320.4659, 359.1406, 315.8594); CreateObject(1634, 2355.208252, -2331.069824, 51.774101, 331.6386, 0.0000, 315.0000); CreateObject(1634, 2360.907227, -2325.318115, 49.473976, 310.1527, 0.0000, 315.0000); CreateObject(1634, 2498.211426, -2228.044189, 19.065718, 18.0482, 359.1406, 268.5905); CreateObject(8040, 2071.405029, -2611.071045, 258.330963, 0.0000, 359.1406, 45.0000); CreateObject(18449, 2130.239502, -2551.124512, 160.508057, 0.0000, 49.8473, 46.7189); CreateObject(18449, 2107.901123, -2574.631348, 219.969864, 0.0000, 71.3332, 46.7189); CreateObject(3331, 2315.089355, -2654.372070, 25.017567, 0.0000, 0.0000, 270.0000); return 1; } Si pentru teleportare: public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/comanda", cmdtext, true, 10) == 0) { SetPlayerPos(playerid, coordonatele); return 1; } return 0; }
-
#include <a_samp> // This is a comment // uncomment the line below if you want to write a filterscript //#define FILTERSCRIPT #if defined FILTERSCRIPT public OnFilterScriptInit() { CreateObject(1310, 2406.044678, -2266.016357, 61.370602, 0.0000, 0.0000, 0.0000); CreateObject(3361, 2411.412354, -2278.384277, 42.745335, 0.0000, 0.0000, 45.0000); CreateObject(3361, 2407.620117, -2282.191406, 46.355339, 0.0000, 0.0000, 45.0000); CreateObject(8040, 2373.581055, -2309.333008, 49.217285, 0.0000, 0.0000, 45.0000); CreateObject(18449, 2315.786865, -2363.705811, 54.357346, 0.0000, 0.0000, 45.0000); CreateObject(18449, 2262.869385, -2415.759277, 15.115066, 0.0000, 0.0000, 45.0000); CreateObject(18449, 2261.165527, -2417.489502, 57.871143, 0.0000, 5.1566, 44.1406); CreateObject(18449, 2211.973633, -2465.761719, 74.371460, 0.0000, 20.6265, 45.0000); CreateObject(18449, 2168.377686, -2510.701172, 108.038467, 0.0000, 36.9558, 46.7189); CreateObject(1634, 2343.382568, -2336.330811, 54.773399, 348.8273, 0.0000, 315.8594); CreateObject(1634, 2349.124023, -2330.444580, 58.648464, 10.3132, 0.0000, 315.8594); CreateObject(18449, 2394.110352, -2286.515381, 72.269287, 0.0000, 0.0000, 45.0000); CreateObject(1634, 2422.511475, -2257.913574, 72.885262, 353.1245, 0.0000, 314.1406); CreateObject(1634, 2491.178223, -2227.911621, 13.563873, 7.7349, 359.1406, 268.5905); CreateObject(1634, 2428.247803, -2252.407715, 76.165497, 1.7189, 0.0000, 313.2038); CreateObject(1634, 2432.047119, -2248.710938, 80.644035, 29.2208, 0.8594, 315.7821); CreateObject(1634, 2350.145996, -2336.215088, 52.823975, 320.4659, 359.1406, 315.8594); CreateObject(1634, 2355.208252, -2331.069824, 51.774101, 331.6386, 0.0000, 315.0000); CreateObject(1634, 2360.907227, -2325.318115, 49.473976, 310.1527, 0.0000, 315.0000); CreateObject(1634, 2498.211426, -2228.044189, 19.065718, 18.0482, 359.1406, 268.5905); CreateObject(8040, 2071.405029, -2611.071045, 258.330963, 0.0000, 359.1406, 45.0000); CreateObject(18449, 2130.239502, -2551.124512, 160.508057, 0.0000, 49.8473, 46.7189); CreateObject(18449, 2107.901123, -2574.631348, 219.969864, 0.0000, 71.3332, 46.7189); CreateObject(3331, 2315.089355, -2654.372070, 25.017567, 0.0000, 0.0000, 270.0000); return 1; } public OnFilterScriptExit() { return 1; } #else P.S.: Imi place accentul tau ;)
-
Si eu l-am testat. Varza. 4/10.
-
Un exemplu simplu: public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/suicide", cmdtext, true, 10) == 0) { SetPlayerHealth(playerid, 0); return 1; } return 0; }
-
LowRyder: //Union Anti Money Hack! (GodFather Compile) by chenza //Support GM GodFather Only!!! #if defined FILTERSCRIPT #define GivePlayerMoney Union_GiveMoney #define ResetPlayerMoney Union_ResetMoney #define GetPlayerMoney Union_GetMoney new ScriptMoney[MAX_PLAYERS]; forward CheckMoneyHack(); forward Union_GiveMoney(plyid, amounttogive); forward Union_ResetMoney(plyid); forward Union_GetMoney(plyid); public OnGameModeInit() // { EnableStuntBonusForAll(0); // Disable Stunt Bonus SetTimer("CheckMoneyHack",5000,1); return 1; } public Union_GiveMoney(plyid, amounttogive) { GivePlayerMoney(plyid, amounttogive); ScriptMoney[plyid] = (ScriptMoney[plyid] + amounttogive); return 1; } public Union_ResetMoney(plyid) { ResetPlayerMoney(plyid); ScriptMoney[plyid] = 0; return 1; } public Union_GetMoney(plyid) { ScriptMoney[plyid]; return 1; } public CheckMoneyHack() //Anti Money Hack By ChenZa!! { for(new i = 0; i<MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { new string[256]; new giveplayer[MAX_PLAYER_NAME]; new money = GetPlayerMoney(i); new pcash = Union_GetMoney(i); if(pcash < money) { GetPlayerName(i, giveplayer, sizeof(giveplayer)); new year, month,day; getdate(year, month, day); new moneynumber = money-pcash; format(string, sizeof(string), "AdmWarning : %s is use Money Cheat amount: %d", giveplayer, moneynumber); SendAdminMessage(0xFFFF00AA, string); Union_ResetMoney(i); Union_GiveMoney(i, pcash); } else { ScriptMoney[i] = money; } } } return 1; } Asa ? EDIT: Pacat. Am crezut ca sti. (The Corect Version): //Union Anti Money Hack! (GodFather Compile) by chenza //Support GM GodFather Only!!! #if defined FILTERSCRIPT #define GivePlayerMoney Union_GiveMoney #define ResetPlayerMoney Union_ResetMoney #define GetPlayerMoney Union_GetMoney new ScriptMoney[MAX_PLAYERS]; forward CheckMoneyHack(); forward Union_GiveMoney(plyid, amounttogive); forward Union_ResetMoney(plyid); forward Union_GetMoney(plyid); public OnFilterScriptInit() // { EnableStuntBonusForAll(0); // Disable Stunt Bonus SetTimer("CheckMoneyHack",5000,1); return 1; } public Union_GiveMoney(plyid, amounttogive) { GivePlayerMoney(plyid, amounttogive); ScriptMoney[plyid] = (ScriptMoney[plyid] + amounttogive); return 1; } public Union_ResetMoney(plyid) { ResetPlayerMoney(plyid); ScriptMoney[plyid] = 0; return 1; } public Union_GetMoney(plyid) { ScriptMoney[plyid]; return 1; } public CheckMoneyHack() //Anti Money Hack By ChenZa!! { for(new i = 0; i<MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { new string[256]; new giveplayer[MAX_PLAYER_NAME]; new money = GetPlayerMoney(i); new pcash = Union_GetMoney(i); if(pcash < money) { GetPlayerName(i, giveplayer, sizeof(giveplayer)); new year, month,day; getdate(year, month, day); new moneynumber = money-pcash; format(string, sizeof(string), "AdmWarning : %s is use Money Cheat amount: %d", giveplayer, moneynumber); SendAdminMessage(0xFFFF00AA, string); Union_ResetMoney(i); Union_GiveMoney(i, pcash); } else { ScriptMoney[i] = money; } } } return 1; }
-
Alea cu #define le pui la inceputul scriptului. Cu forward, sub #define, new sub forward, OnGameModeInit la OnGameModeInit (in filterscript ii OnFilterScriptInit...) Cele cu public, in afara de public OnGameModeInit, la pui chiar la sfarsitul scriptului. Da. Trebuie sa il adaugi ca comment /* */ in gamemode daca il folosesti ca filterscript. Unde incepe codul scrii /*, iar la sfarsit, */.
-
Data viitoare foloseste url[./img] HINT: Fara .
-
//OnPlayerCommandText(playerid, cmdtext[]) new cmd[256]; new idx; cmd = strtok(cmdtext, idx); //alte comenzi if (strcmp(cmd, "/savep", true) == 0) { new str[256]; new comment[256]; new Float:Angle; tmp = strtok(cmdtext,idx); if(!strlen(tmp)) { SendClientMessage(playerid,0xF97804FF,"USAGE: /savep [class/vehicle/object/pickup/position] [comment]"); SendClientMessage(playerid,0xF97804FF,"FUNCTION: Will save your position and create a file to save it in."); SendClientMessage(playerid,0xF97804FF,"HELP: Class: AddPlayerClass - Vehicle: CreateVehicle - Object: CreateObject"); SendClientMessage(playerid,0xF97804FF,"HELP: Pickup: CreatePickup - Position: X,Y,Z,Angle"); SendClientMessage(playerid,0xF97804FF,"HELP: You don't have to enter a comment."); } else if(strcmp(tmp,"class",true) == 0) { new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= ' ')) { idx++; } new offset = idx; while ((idx < length) && ((idx - offset) < (sizeof(comment) - 1))) { comment[idx - offset] = cmdtext[idx]; idx++; } comment[idx - offset] = EOS; GetPlayerPos(playerid,X,Y,Z); GetPlayerFacingAngle(playerid,Angle); new skin = GetPlayerSkin(playerid); format(string,sizeof(string),"AddPlayerClass(%d,%.0f,%.0f,%.0f,%.0f,0,0,0,0,0,0); // %s",skin,X,Y,Z,Angle,comment); new File: save = fopen("savedcoords.txt",io_append); format(str,256," \r\n"); fwrite(save, string); fwrite(save,str); fclose(save); SendClientMessage(playerid,0x38FF06FF,string); } else if(strcmp(tmp,"vehicle",true) == 0) { new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= ' ')) { idx++; } new offset = idx; while ((idx < length) && ((idx - offset) < (sizeof(comment) - 1))) { comment[idx - offset] = cmdtext[idx]; idx++; } comment[idx - offset] = EOS; GetPlayerPos(playerid,X,Y,Z); GetPlayerFacingAngle(playerid,Angle); new model = GetVehicleModel(GetPlayerVehicleID(playerid)); format(string,sizeof(string),"CreateVehicle(%d,%.0f,%.0f,%.0f,%.0f,-1,-1,180000); // %s",model,X,Y,Z,Angle,comment); new File: save = fopen("savedcoords.txt",io_append); format(str,256," \r\n"); fwrite(save, string); fwrite(save,str); fclose(save); SendClientMessage(playerid,0x38FF06FF,string); } else if(strcmp(tmp,"object",true) == 0) { new objectid[256]; objectid = strtok(cmdtext,idx); if(!strlen(objectid)) { SendClientMessage(playerid,0xF97804FF,"USAGE: /savep object [objectid] [comment]"); SendClientMessage(playerid,0xE60000FF,"ERROR: You have to enter an object id to continue! If you don't know the ID, type anything to proceed"); return 1; } new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= ' ')) { idx++; } new offset = idx; while ((idx < length) && ((idx - offset) < (sizeof(comment) - 1))) { comment[idx - offset] = cmdtext[idx]; idx++; } comment[idx - offset] = EOS; GetPlayerPos(playerid,X,Y,Z); format(string,sizeof(string),"CreateObject(%s,%.0f,%.0f,%.0f,0,0,0); // %s",objectid,X,Y,Z,comment); new File: save = fopen("savedcoords.txt",io_append); format(str,256," \r\n"); fwrite(save, string); fwrite(save,str); fclose(save); SendClientMessage(playerid,0x38FF06FF,string); } else if(strcmp(tmp,"pickup",true) == 0) { new pickupid[256]; pickupid = strtok(cmdtext,idx); if(!strlen(pickupid)) { SendClientMessage(playerid,0xF97804FF,"USAGE: /savep pickup [pickupid] [comment]"); SendClientMessage(playerid,0xE60000FF,"ERROR: You have to enter a pickup id to continue! If you don't know the ID, type anything to proceed"); return 1; } new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= ' ')) { idx++; } new offset = idx; while ((idx < length) && ((idx - offset) < (sizeof(comment) - 1))) { comment[idx - offset] = cmdtext[idx]; idx++; } comment[idx - offset] = EOS; GetPlayerPos(playerid,X,Y,Z); format(string,sizeof(string),"CreatePickup(%s,23,%.0f,%.0f,%.0f); // %s",pickupid,X,Y,Z,comment); new File: save = fopen("savedcoords.txt",io_append); format(str,256," \r\n"); fwrite(save, string); fwrite(save,str); fclose(save); SendClientMessage(playerid,0x38FF06FF,string); } else if(strcmp(tmp,"position",true) == 0) { new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= ' ')) { idx++; } new offset = idx; while ((idx < length) && ((idx - offset) < (sizeof(comment) - 1))) { comment[idx - offset] = cmdtext[idx]; idx++; } comment[idx - offset] = EOS; GetPlayerPos(playerid,X,Y,Z); GetPlayerFacingAngle(playerid,Angle); format(string,sizeof(string),"// %f, %f, %f,%.0f // %s",X,Y,Z,Angle,comment); new File: save = fopen("savedcoords.txt",io_append); format(str,256," \r\n"); fwrite(save, string); fwrite(save,str); fclose(save); SendClientMessage(playerid,0x38FF06FF,string); } else { SendClientMessage(playerid,0xF97804FF,"USAGE: /savep [class/vehicle/object/pickup/position] [comment]"); } return 1; } //alte comenzi Poate nu ai pus bine codul in script.
-
Pune totul intr-o arhiva si pune-le pe www.mediafire.com sau www.sendspace.com Trimite-mi un PM cand ai terminat.
-
Citeste regulile forumului. Downlodeaza fisierul d3dx9_33.dll si pune-l in C:\WINDOWS\system32 si gata. Click
-
Ii super tare. O problema (mica); Cand se conecteaza mai multi jucatori, deodata, mesajele se suprapun, si nu mai pot fi citite.
-
Spam. http://forum.sa-mp.com/index.php?topic=89627.0
