Raised This Month: $ Target: $400
 0% 

How to obfuscate code ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Backstabnoob
BANNED
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 07-01-2014 , 19:26   Re: How to obfuscate code ?
Reply With Quote #1

Then attach the code here.
Backstabnoob is offline
Old 07-01-2014, 19:29
YamiKaitou
This message has been deleted by YamiKaitou. Reason: I missed a post
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 07-01-2014 , 19:30   Re: How to obfuscate code ?
Reply With Quote #3

Code:
#include <amxmodx> #define X 5 new RoundCount public plugin_init() {     register_plugin("Test Plugin 9", "", "[ --{-@ ]");     register_event("HLTV", "eventNewRound", "a", "1=0", "2=0") } public eventNewRound() {     if ( ++RoundCount % X == 0 ) {         // Will occur every X rounds, starting with X.     } /* OR */     if ( ++RoundCount % X == 1 ) {         // Will occur every X rounds, starting with 1.     } }

Obviously delete the if statement you don't need since it will increment 2 each time otherwise.
Please share the code though...
__________________

Last edited by Black Rose; 07-01-2014 at 19:32.
Black Rose is offline
vikvik
Junior Member
Join Date: Apr 2014
Old 07-04-2014 , 08:42   Re: How to obfuscate code ?
Reply With Quote #4

thanks a lot black but can I do for every player in particular ? like every player after he joins 2 rounds from him and the next player join 2 rounds for him so it will count the rounds for every player because let's say i put for 4 rounds if i join when there is the 3d going onfor me it will be the next round (actually is that for me the first round)
vikvik is offline
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 07-04-2014 , 08:47   Re: How to obfuscate code ?
Reply With Quote #5

Just make the variable into an array with 33 indexes, looping using get_players() on new round and resetting on connect or disconnect.

Edit, by request:
Code:
#include <amxmodx> #define X 5 new RoundCount[33] public plugin_init() {     register_plugin("Test Plugin 9", "", "[ --{-@ ]");     register_event("HLTV", "eventNewRound", "a", "1=0", "2=0") } public client_disconnect(id)     RoundCount[id] = 0; public eventNewRound() {     if ( ++RoundCount[id] % X == 0 ) {         // Will occur every X rounds, starting with X.     } /* OR */     if ( ++RoundCount[id] % X == 1 ) {         // Will occur every X rounds, starting with 1.     } }
Remember, this is scripting help. At least try.
__________________

Last edited by Black Rose; 07-04-2014 at 09:44.
Black Rose is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-04-2014 , 15:58   Re: How to obfuscate code ?
Reply With Quote #6

This thread is about obfuscating code, not executing code every round. Please create a new thread for new topics.
__________________
fysiks is offline
Backstabnoob
BANNED
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 07-04-2014 , 16:11   Re: How to obfuscate code ?
Reply With Quote #7

The original post was about a code that occurs every X rounds, so rather than finding a way to deobfuscate code that can be written in 20 rows, why not just give him a better solution?
Backstabnoob is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-04-2014 , 18:22   Re: How to obfuscate code ?
Reply With Quote #8

Quote:
Originally Posted by Backstabnoob View Post
The original post was about a code that occurs every X rounds, so rather than finding a way to deobfuscate code that can be written in 20 rows, why not just give him a better solution?
Read the title and the first post.
__________________

Last edited by fysiks; 07-04-2014 at 18:22.
fysiks is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:05.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode