Tutorials & Guides

Do you want to know how to ? Check the useful topics here.
Many of you probably C+P'ed the "addClientCommand" out of mod_sa, it's easy to use and has one annoying thing to it.. It is the internal SA:MP limit of commands, you can actually bypass this pretty easy and do your own "command handler" which will also classify you as !337 l33t hax0r. First you need to know how SA:MP handles commands, basically if the input text of the editcontrol on the chatgui contains a "/" it scans through the internal list of commands and if it can't find one it'll send the request to the server. This is where we come in, it's actually pretty easy to go between the call and do your own magic. Today I will present you how, you should have a little experience tho I won't bother explaining everything here. Step one...
TUTORIAL Okay so this is what you do. Open one of these in SannyBuilder. You should get something like this. // This file was decompiled using sascm.ini published by Seemann (http://sannybuilder.com/files/SASCM.rar) on 13.10.2007 {$VERSION 3.1.0027} {$CLEO .cs} //-------------MAIN--------------- thread 'GIVE_WEAPON' jump @GIVE_WEAPON_26 :GIVE_WEAPON_26 wait 0 if 0AB0:  key_pressed 49 else_jump @GIVE_WEAPON_26 jump @GIVE_WEAPON_52 :GIVE_WEAPON_52 wait 0 Model.Load(#MINIGUN) if   Model.Available(#MINIGUN) else_jump @GIVE_WEAPON_52 01B2: give_actor $PLAYER_ACTOR weapon 38 ammo 250 // Load the weapon model before using this wait 100 jump @GIVE_WEAPON_26 If you want to change what weapon it gives you first you have to...
hey.. i decided to post it because i have been like a whole day trying to calculate the distance between your actor and the targer to get the distance with the formula but then i found out theres an opcode that does it automatically so here it is, just in case someone else needs it :) 0104: actor $PLAYER_ACTOR near_actor 0@ radius  RANGE_X  RANGE_Y  RANGE_Z sphere  0 so if i want to check if someone is at the distance of 10.0 from me i would do this if 0104: actor $PLAYER_ACTOR near_actor 0@ radius  10.0  10.0  10.0 sphere  0 then ... hope it is usefull for someone as it was hard to find for me. xd where 0@ is the actor target
Hello, everyone it's HapeHD here. Today I'm going to teach you guys how to successful ban evade from every SA-MP server. What we need for this is atleast a: Linksys Router or you need Frosty VPN (( Thanks to StyleRxd for releasing Frosty VPN - Frosty VPN is attached in the Download Files )) How to ban evade with a Linksys Router 1. Go your Web Browser - This is for everyone different but just choose your default web browser such as Chrome or Firefox or InterDerpExplorer ^^ 2. Now go to the URL bar and type in the following thing: [192.168.1.1] - (( ATTENTION : This could be changed by someone! So if you want to make sure it's not changed go to: CMD ->> ipconfig ->> Look at Default Gateway and it should be something like: 192.168.x.x...
This thread is a bit hard to reach, without a link to that thread you need to search for hours. So i will make this sticky thread which contains only the important informations and files about samp functions from that crowded, grammar-killer thread of styler. ------------------------------------------------------------------------------------------------------- First of all you need a proper crack, gta_sa.exe. Now, you need Samp-R1 so that all the mods will work You also need a good installation of DirectX 9.0 If the cleo plugin doesn't work and your game crashes; Either install the Microsoft Visual C++ For Windows 7/Vista/Xp x86 32bit For Windows 7/Vista/Xp x86 64bit For Windows 8(Under the title "Visual Studio Express 2013") And the...
Hello,This Is BlackHat. Today i'm going to explain how to get handle of sannybuilder control :D no codes only the presentation of sannybuilder - in the very next video we will work with codes i promise :) I made it a video , So you guys can understand better than just reading texts yeah? this is my voice , so don't laugh niggers (too hard to speak in another language - my first video with my voice), thanks your god i'm making tutorials when none are doing it  :celeral_guy: here you go: www.youtube.com/watch?v=_XOtBFbalwQ if you can't understand my accent remember Russian accent and you will feel mine is much better than Russian one :P
Hello,this is BlackHat today i will explain how to make your first codes and your first script < yes yes there s codes in the video :P www.youtube.com/watch?v=TZx5AZ_IxWg this will show you the basic of codes and structures the script: {$CLEO} 0000: NOP // this is comment ... {this is comment also } :MAIN wait 0 if and 056D:  actor $PLAYER_ACTOR defined 0AB0: 49 //key 1 pressed? jf @MAIN 0332: set_actor $PLAYER_ACTOR bleeding 1  jump @MAIN           thanks for following my tutorials series ..
[align=center]The tools you will need are: Sanny Builder 3 - http://sannybuilder.com/ GTA Animation Manager - http://hotmist.ddo.jp/tool/animman/ IMG Tool 2.0 - http://www.thegtaplace.com/downloads/f552-img-tool-2-0 CLEO 3/4 LIBRARY - http://cleo.sannybuilder.com/ Part 1 First you will download CLEO 3/4 LIBRARY To install it, just grab all files in the zip file and put them in the GTA: San Andreas folder Part 2 Before you view the animations in GTA Animation Manager, you must get a skin of a ped To do that, open IMG Tool 2.0. When it opens, you will see a small browser. Click on File>Open and go to GTA San Andreas>models and chose gta3.img Now go to this site - http://wiki.sa-mp.com/wiki/Skins:All From here you will chose your...
Here's a long, detailed tutorial about how to create our own dance cleo mod by using Sanny Builder. Now, the thing is, i can not explain anything without giving an example. So i will give an example, let's make a rapper cleo mod ! You press F12 and it raps for some time ;D How to start, Open Sanny Builder, hit Ctrl + N. Start with this : {$CLEO .cs} Without that, i think the cleo won't work. Then, add name to your cleo file like below : thread 'RAPPERMOD' Now that we wrote this as total : {$CLEO .cs} thread 'RAPPERMOD' Now we start scripting. To start, put the name which you choose for the thread as :<yourname>_01, like here: :RAPPERMOD_01 wait 0 I added "wait 0", because the cleo crashes if i don't use the "wait"...
Can someone make a video/Easy written tutorial on how to make a simple cleo script that presses buttons for you such as: I want my player to run automaticly so I want it to press 'W' for me with a on and off button. Can someone make a tutorial for it? Another example: I want my guy to bunny hop automaticly, with a on and off button bla bla bla, so I just want to know how to make them simple scritps
Hello,Today i will explain what GOSUB means GOSUB , wiki: ok so here is a simple script: {$CLEO} 0000: NOP :START wait 0 if and 056D:  actor $PLAYER_ACTOR defined //check if actor is defined else jump to START to loop again key_down 49  //if key 1 pressed run the code below , else jump @start again to loop jf @START 02AB: set_actor $PLAYER_ACTOR immunities BP 1 FP 1 EP 1 CP 1 MP 1 //this will get you full immunitie (god mode) 0AD1: show_formatted_text_highpriority "GOD MODE ACTIVATED " time 2000 0x0AD1 jump @START now to add the GOSUB thing we change the script to this way: {$CLEO} 0000: NOP :START wait 0 if and 056D:  actor $PLAYER_ACTOR defined //check if actor is defined else jump to START to loop again key_down...
I've made a youtube video showing you how to correctly install sampfuncs, mgafuncs etc. Just want to contribute to the community. I dont want people  :table_flip: like i did. Looking for certain downloads and having to read in russian(which i don't know how to thanks google translator) :trollface: But here is the video! Enjoy and leave feedback. Sampfuncs Tut: https://www.youtube.com/watch?v=-cxQvEyKl2w&feature=youtu.be
Hello, Today i will explain the "repeat" statement now repeat means , loop through things until some point that you defined this will give you a god mode when you press 1 + 2 and when you press 0 it will stop this is our code: {$CLEO}                                                                                         0000: NOP 0@ = 0 // learn more about this at (http://ugbase.eu/tutorials/)read-commands-and-do-something-about-tut-open-source-codes/) :GODSTART //our first label with active keys check and conditions wait 0  if and 0256: $PLAYER_ACTOR //is actor defined?  0AB0: key_pressed 49  //1 0AB0: key_pressed 50 //2 0184:  actor $PLAYER_ACTOR health <> 0 //"<>" means not equal jf @GODSTART //if any of these...
Hello guys,many should already know, but there are some that do not know how to remove the text that show scripts Cleo loaded in ESC. Download: http://mh-nexus.de/en/downloads.php?product=HxD Open he,and open CLEO.ASI press CTRL+F and find "SCRIPTS" change to 00: Cleos load: and when press ESC
    THIS IS JUST FOR THE LOVE OF BEAUTIFUL CODE ! Hello, today i made this little complex cleo here. this is a simple BUT complex godmode cleo, written in assembly and cleo code (lol can you believe that?) Basically... this is an example of "Code Injection" and exploitation of the hex end tags in CLEO in order build a Code Cave! CLEO code: {$CLEO} //  This is an example of: // - How to use CLEO for building a code cave. // - Made by T3KTONIT // - origine : - 0000: START :ShowLoadedText wait 1000 0AD1: show_formatted_text_highpriority "Complex Health is loaded!" time 5000 jump @Thread_0 :Thread_0 wait 1000                            0A9F: 0@ = current_thread_pointer                0A8E: 0@ = 0@ + 16 0A8D: 1@ = read_memory 0@...
hello, i changed to text since i'm too lazzy to make a video. let's start << i will explain the first code too so you guys can follow if you didn't understand the video: so here is our last script: {$CLEO} 0000: NOP // this is comment ... {this is comment also } :MAIN wait 0 if and 056D:  actor $PLAYER_ACTOR defined 0AB0: 49 //key 1 pressed? jf @MAIN 0332: set_actor $PLAYER_ACTOR bleeding 1  jump @MAIN explaining the codes: so now we now that we have to put these two lines before starting codes to avoid crashes: {$CLEO} 0000: NOP and this is how we comment and make notes : //this is comment and won't be read by sanny/gta now to start with the real codes , we have to use labels , and labels is kinda a big function...
Hello,This is the second part of .INI file making and using first part> http://ugbase.eu/tutorials/13)use-ini-to-customize-your-script-part1-tut/ THIS PART ABOUT USING THE .INI IN CLEO SCRIPT so here is our simple script: {$CLEO} 0000: NOP :main wait 0 if and 056D:  actor $PLAYER_ACTOR defined 0AB0:  key_pressed 49 //1 0AB0:  key_pressed 50 //2 jf @main 0AD1: show_formatted_text_highpriority "You pressed key 1and 2" time 2000 0x0AD1 jump @main now if we pressed key 1 and kay 2 we will display the massage saying "You pressed key 1 and 2" BUT , we need to to change the key from time to time , and this is very damn hard , every one want his own key , and by .ini you give the people the chance to custom their version of...
Hello,Today i will explain how to make .ini and how to use it in script. PART1: THIS PART ABOUT LEARNING .INI AND HOW TO MAKE ONE. PART2>> http://ugbase.eu/tutorials/14)use-ini-to-customize-your-script-part2-tut/ so ini means: and this is how we put codes in ini file: first sections: then keys: and we put keys under sections just like you saw above: [ONKEY] kay1=49 [OFFKEY] key1=50 and we comment in INI file using this semicolon " ; " so every semicolon means the whole line is commented wiki: now making .ini file is easy , just open notepad and add the codes for example: [ONKEY] kay1=49 [OFFKEY] key1=50 then under FILE tap select SAVE AS.. then name it and put after the name .ini so it get compiled as ini...
hello, today i will explain how to register coords and do something with it :) ok so here is our code: {$cleo} 0000: :first wait 0 if and      // our conditions keyword 056D:  actor $PLAYER_ACTOR defined    //define the actor 0AB0:  key_pressed 115 //f4 jf @second 00A0: store_actor $PLAYER_ACTOR position_to 1@ 2@ 3@ jump @second :second wait 0 if and      // our conditions keyword 056D:  actor $PLAYER_ACTOR defined    //define the actor 0AB0:  key_pressed 116 //f5 jf @first 00A1: put_actor $PLAYER_ACTOR at 1@ 2@ 3@ jump @first you may not understand everything now but i will explain it, but you may go to this tutorial to know more about "if" statement...
Hello,today i will explain how to activate and deactivate with the same key this is our code: {$CLEO} 0000: NOP                                :first //our label wait 0 if and //our conditions 056D:  actor $PLAYER_ACTOR defined 0AB0:  key_pressed 49    // 1 0AB0:  key_pressed 50    /// 2                      then 0B12: 0@ = 0@ XOR 1  // this will activate the cheat and deactivate if you pressed the keys again- explain below if  //now to check if 0@ is equal to 1 (1 means activated, 0 means not activated)                      0@ == 1  // we use to equal sign " == " when we check using "IF" then //here we put our codes that will run when  our script is active actor.SetImmunities($PLAYER_ACTOR, 1 , 1 , 1 , 1 , 1) 0AD1...
Hello, today i will explain "WHILE" statement for "WHILE TRUE" i think it means while everything is = 1 = true ( we learned 1 means true , 0 means false)then run the script. here is our simple script: :start wait 0 WHILE TRUE  // in capital or small letters (it doesn't matter)     wait 0 // after every "WHILE" we need "wait 0" to avoid crashing     if   0AB0:  key_pressed 49 //1     then  //every "then" needs "end" remember?         0AD1: show_formatted_text_highpriority "YOU PRESSED 1" time 1000     end  //this end is for "then" statement END //this big "END" is for "WHILE" , so "while" get closed,, every while needs closer which is "end" // we don't need to use big END because end = END , so capitals doesn't matter but we use END...
Hello, today i will explain how to use "IF OR" statement ok so this is a very simple script: {$CLEO} 0000: NOP // this is comment ... :MAIN wait 0 if and 056D:  actor $PLAYER_ACTOR defined 0AB0: 49 //key 1 pressed? jf @MAIN 0332: set_actor $PLAYER_ACTOR bleeding 1  jump @MAIN now you see we used "if and" now "if and" can handle 8 conditions as max and "if and" means that (if this condition is true AND if this condition is true) means that all conditions must be true to run the code so here: :MAIN wait 0 if and 056D:  actor $PLAYER_ACTOR defined 0AB0: 49 //key 1 pressed? jf @MAIN actor must be defined and key 1 must be pressed to run the script , else jump @main (the label) but now we want to run the code if we pressed...
Here is how are all those 'magical' Godmodes made: Shitty one: :LOOP wait 0 if 0ADC:  test_cheat "SHH" // Key Enabled / Disabled else_jump @MAIN if 31@ == 0 then 31@ = 1 018C: play_sound 1083 at 0.0 0.0 0.0 0ACD: show_text_highpriority "ACTIVATED" time 1337 else 31@ = 0 018C: play_sound 1084 at 0.0 0.0 0.0      0ACD: show_text_highpriority "DEACTIVATED" time 1337 end :MAIN wait 0 if 31@ == 1 // on jf @LOOP if not Actor.Stopped($PLAYER_ACTOR) jf @LOOP 21@ = Actor.Health($PLAYER_ACTOR) wait 300 22@ = Actor.Health($PLAYER_ACTOR) if 0029:  21@ >= 22@ jf @LOOP Actor.Health($PLAYER_ACTOR) = 21@ 0ACD: show_text_highpriority "PROTECTED" time 300 jump @LOOP Better one: :LOOP wait 0 if 0ADC:  test_cheat "Opcode69" // Key Enabled /...
--------------------------------------------------------------------------------------------------- This Tutorial Is Fully By Mr.Ze I'm Just Publishing it To Help Everybody. Mr.Ze Sent This To Me To Help me. And I Want To Help Everybody. I Don't Take Any Credit Of This. --------------------------------------------------------------------------------------------------- So, CLEO is a simple scripting lang. The best way you will learn is by looking at the scripts and trying to understand what they do and how they do it. Good example of a script: {$CLEO .cs} 0000: NOP :INFINITE_RUN_23 wait 0 IF AND 044B:  actor $PLAYER_ACTOR on_foot   NOT Actor.Driving($PLAYER_ACTOR) ELSE_JUMP @INFINITE_RUN_23...
Hello, today i will explain how to use another idea of "if" statement since i forgot to cover it hehehe so now we got a normal script: {$cleo} 0000: :MAIN wait 0 if and      // our conditions keyword 056D:  actor $PLAYER_ACTOR defined    //define the actor 0AB0:  key_pressed 115 //f4 jf @MAIN //here we put our codes to do if the conditions are true ,, like this: 0AD0: show_formatted_text_lowpriority "This is lazzy massage" time 2000 jump @MAIN so this is how we do it: we use "if" statement as usual , but after our conditions we remove "jf @MAIN" and we add "then" keyword like this: {$cleo} 0000: :MAIN wait 0 if and      // our conditions keyword 056D:  actor $PLAYER_ACTOR defined    //define the actor 0AB0: ...
Top