Jump to content
Sign in to follow this  
Guest farse

Rule Editor[0.3d][windows]

Recommended Posts

Guest farse

Este primul meu plugin,care desigur este interzis pe sa-mp.com,(click this click :) )

Am procesor intel,deci assembleru nu cred ca merge very good ass pe amd..

Totodata,merge doar pe windows,ca nu stiu exact adresele pt linux si cum [censured by the system] se porneste un makefile :)

Creditele mi se atribuie,dar multe multumiri lui Ssk,pentru versiunea 0.3c dar si pentru viziunea de asm-ing.

Download:(Windows) : http://solidfiles.com/d/db67879d21/

Source Code: http://solidfiles.com/d/1b8bb2573c/

Un scurt exemplu:

[pawn]#include <a_samp>

native addRule ( rulename[], rulevalue[] );

native editRule ( rulename[], rulevalue[] );

#include sscanf

public OnFilterScriptInit()

{

addRule( "We Rullz?","Out of Game");

editRule("We Rullz?","Yeap");

return 1;

}

public OnRconCommand(cmd [])

{

if(strfind(cmd,"addrule",true) == 0)

{

    new rname[44],rvalue[44];

    if(sscanf(cmd,"sss",rname,rname,rvalue))return print("Use: addrule [rule] [value]");

    addRule(rname,rvalue);

}

if(strfind(cmd,"editrule",true) == 0)

{

    new rname[44],rvalue[44];

    if(sscanf(cmd,"sss",rname,rname,rvalue))return print("Use: edit [rule] [value]");

    editRule(rname,rvalue);

}

return 1;

}[/pawn]+ plugins rule_editor

1baa.jpg.

Cine stie niste lucruri legate de makefile,cygwin,minGW,un pm..ceva.

Share this post


Link to post
Share on other sites

Nu prea inteleg ce face :))

EDIT:

[15:48:03] Server Plugins

[15:48:03] --------------

[15:48:03]  Loading plugin: rule_editor.dll

[15:48:03]  Failed.

[15:48:03]  Loading plugin: streamer.dll

[15:48:03]

*** Streamer Plugin v2.5.2 by Incognito loaded ***

[15:48:03]  Loaded.

[15:48:03]  Loading plugin: sscanf.dll

[15:48:03]

[15:48:03]  ===============================

[15:48:03]      sscanf plugin loaded.   

[15:48:03]    © 2009 Alex "Y_Less" Cole

[15:48:03]  ===============================

[15:48:03]  Loaded.

[15:48:03]  Loaded 2 plugins.

Am 0.3d RC8!?i  rule_editor.dll este primul in server.cfg


qdbjz10.png

Share this post


Link to post
Share on other sites

Nu prea inteleg ce face :))

samp.exe > Click pe un server > Uita-te sub lista jucatorilor. Cu asta poti adauga ceva gen: "Objects: 340894423" sub worldtime si poti edita "version", "mapname", "gravity", etc., fara a le schimba din joc cu /rcon mapname ..., sau sa bagi alta versiune de SA:MP ca sa modifici "version".

EDIT: Baga si setRulePosition( rulename[ ], place ); . De exemplu daca pui 0, va fi prima, daca pui 1, va fi deasupra la gravity, sau deasupra la gravity si prima setata, si tot asa.

Share this post


Link to post
Share on other sites
Guest farse

1baa.jpg Asta face.

Mai eu nu testez de la 0 la F de n ori sa vad care e adresa,m'am folosit de IDA,dar trebuie sa il folosesc pe linux,sau lol,ar merge si pe linux? :)) ,ma duc sa testez...

Share this post


Link to post
Share on other sites

stuntman[]!" post="99148" timestamp="1320846175"]

... era mai bine daca era si pentru linux. Cauta adresele pana te doare capul. :))

Mda mai bine pe linux, ca 90% din hosturi sunt pe linux:P

Whatever, Very Good JOB!


Fara reclama in semnatura!

Share this post


Link to post
Share on other sites
Guest farse

Update,0.3d...

Cine stie ceva de makefile,cygwin,minGW,un pm,ceva..

[table]

[pawn]

mov ecx, dword_4E623C

push ebx ; int

push offset a0_3d ; "0.3d"

push 6 ; int

push offset aVersion ; "version"                             

call sub_4820E0[/pawn]

[pawn]

mov ecx, CONSOLE

push 0

push value

push 4 ; am incercat cu 6,dar mergea dupa o mica perioada de timp o.O         

push Name

call 4820E0

[/pawn]

[/table]

http://forum.softpedia.com/index.php?showtopic=549532

prea mult de citit o.O

Share this post


Link to post
Share on other sites

http://forum.softpedia.com/index.php?showtopic=549532

prea mult de citit o.O

Chiar ca e mult de citit:))

E foarte tare plugin-ul..cum au zis si ceilalti pe linux era bun,dar oricum..e ceva si asa


gXvsYS

Share this post


Link to post
Share on other sites

Am incercat sa il folsoesc dar nu a mers.. oricum 5/5 daca chiar merge :(

nu ti-a mers pentru ca e pentru 0.3d, iar tu cel mai probabil ai incercat pe alta versiune.

facusem eu versiunea pentru 0.3e, dar nu stiu sigur daca o mai am in pc.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

This site uses cookies. By continuing browsing, you agree to the use of this information. For more details, see Terms of Use and Privacy Policy.