Raised This Month: $32 Target: $400
 8% 

Full Pack Grenades [27/02/2014]


Post New Thread Reply   
 
Thread Tools Display Modes
Simple32
Junior Member
Join Date: Feb 2014
Old 03-01-2014 , 17:14   Re: Full Pack Grenades [27/02/2014]
Reply With Quote #11

Done re-wrote description.

Last edited by Simple32; 03-01-2014 at 19:23.
Simple32 is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 03-01-2014 , 18:24   Re: Full Pack Grenades [27/02/2014]
Reply With Quote #12

Quote:
Originally Posted by Simple32 View Post
Done re-wrote.
Not by you, it's Black Rose's code. You were too lazy to rewrite it or remove the debug checks.

Your code:
PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <fun>

#define ACCESS_HEGRENADE_1 (1<<0) // a
#define ACCESS_FLASHBANG_2 (1<<1) // b
#define ACCESS_SMOKEGRENADE_3 (1<<2) // c

new gCvarGrenades;

public 
plugin_init() {
    
    
register_plugin"Full Pack Grenades""1.0.7""Simple32" );
    
    
gCvarGrenades register_cvar"mode_grenades""abc" );
    
    
RegisterHamHam_Spawn"player""fwdPlayerSpawn");
}

public 
fwdPlayerSpawnid ){
    
    
server_print("fwdPlayerSpawn(%d) called"id);
    
    if( 
is_user_aliveid ) )
    {
        
server_print("is_user_alive(%d): true"id);
        static 
szFlags[32];
        
        
get_pcvar_string(gCvarGrenadesszFlagscharsmax(szFlags));
        new 
iFlags read_flags(szFlags);
        
        
server_print("mode_grenades: %s / %d"szFlagsiFlags);
        
        
        if(
iFlags ACCESS_HEGRENADE_1)
        {
            
server_print("Giving hegrenade");
            
give_item(id"weapon_hegrenade");
        }
        
        if(
iFlags ACCESS_FLASHBANG_2)
        {
            
server_print("Giving flashbang");
            
give_item(id"weapon_flashbang");
        }
        
        if(
iFlags ACCESS_SMOKEGRENADE_3)
        {
            
server_print("Giving smokegrenade");
            
give_item(id"weapon_smokegrenade");
        }
        
server_print("End of if statements");
    }
    else
        
server_print("is_user_alive(%d): false"id);
    
    
server_print("End of function");
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang3081\\ f0\\ fs16 \n\\ par }
*/ 
Black Rose code:
PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <fun>

#define ACCESS_HEGRENADE_1 (1<<0) // a
#define ACCESS_FLASHBANG_2 (1<<1) // b
#define ACCESS_SMOKEGRENADE_3 (1<<2) // c

new gCvarGrenades;

public 
plugin_init() {
    
    
register_plugin"Full Pack Grenades""1.0.7""Simple32" );
    
    
gCvarGrenades register_cvar"mode_grenades""abc" );
    
    
RegisterHamHam_Spawn"player""fwdPlayerSpawn");
}

public 
fwdPlayerSpawnid ){
    
    
server_print("fwdPlayerSpawn(%d) called"id);
    
    if( 
is_user_aliveid ) )
    {
        
server_print("is_user_alive(%d): true"id);
        static 
szFlags[32];
        
        
get_pcvar_string(gCvarGrenadesszFlagscharsmax(szFlags));
        new 
iFlags read_flags(szFlags);
        
        
server_print("mode_grenades: %s / %d"szFlagsiFlags);
        
        
        if(
iFlags ACCESS_HEGRENADE_1)
        {
            
server_print("Giving hegrenade");
            
give_item(id"weapon_hegrenade");
        }
        
        if(
iFlags ACCESS_FLASHBANG_2)
        {
            
server_print("Giving flashbang");
            
give_item(id"weapon_flashbang");
        }
        
        if(
iFlags ACCESS_SMOKEGRENADE_3)
        {
            
server_print("Giving smokegrenade");
            
give_item(id"weapon_smokegrenade");
        }
        
server_print("End of if statements");
    }
    else
        
server_print("is_user_alive(%d): false"id);
    
    
server_print("End of function");
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang3081\\ f0\\ fs16 \n\\ par }
*/ 
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
Simple32
Junior Member
Join Date: Feb 2014
Old 03-01-2014 , 18:30   Re: Full Pack Grenades [27/02/2014]
Reply With Quote #13

When I ment re-wrote is as in I fixed the description on the first post. I also put Black Rose in Credits.

Also he just fixed the Bit flags as it was not working by editing it and putting extra things and is in the Credits for helping me.

Last edited by Simple32; 03-01-2014 at 18:35.
Simple32 is offline
Simple32
Junior Member
Join Date: Feb 2014
Old 03-01-2014 , 19:46   Re: Full Pack Grenades [27/02/2014]
Reply With Quote #14

Changelog:
Version 1.0.8 - Added client_print to see what grenades you received.

Last edited by Simple32; 03-01-2014 at 19:46.
Simple32 is offline
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 03-01-2014 , 20:27   Re: Full Pack Grenades [27/02/2014]
Reply With Quote #15

Simple32 do you understand bitwise? And using black Rose code you can't really keep your name as author but as original idea.
__________________
Blizzard_87 is offline
Simple32
Junior Member
Join Date: Feb 2014
Old 03-01-2014 , 22:08   Re: Full Pack Grenades [27/02/2014]
Reply With Quote #16

I posted in scripting help to know why it wasn't working. I wouldn't of posted it if someone is going to take the author just for them helping me make it work. I put him as credits and helped it make it work. So do you mean as in putting me and him as authors because I coded the plugin and putting all cvar in to one all he did was make it available to work by adding me extra things.

Last edited by Simple32; 03-01-2014 at 22:10.
Simple32 is offline
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 03-01-2014 , 22:17   Re: Full Pack Grenades [27/02/2014]
Reply With Quote #17

Quote:
Originally Posted by Simple32 View Post
I posted in scripting help to know why it wasn't working. I wouldn't of posted it if someone is going to take the author just for them helping me make it work. I put him as credits and helped it make it work. So do you mean as in putting me and him as authors because I coded the plugin and putting all cvar in to one all he did was make it available to work by adding me extra things.
technically black rose rewrote your plugin the only code he left from your original was the give_item natives, all other code was from him. as far as i can see...
__________________
Blizzard_87 is offline
Simple32
Junior Member
Join Date: Feb 2014
Old 03-01-2014 , 22:23   Re: Full Pack Grenades [27/02/2014]
Reply With Quote #18

This is what I had before he made it work.
Attached Files
File Type: sma Get Plugin or Get Source (fpg_before.sma - 456 views - 1.0 KB)
Simple32 is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 03-02-2014 , 04:13   Re: Full Pack Grenades [27/02/2014]
Reply With Quote #19

You doesn't seem able to support or to release plugin, and i think it is not the first time you are being told it (6 unapproved plugins for same reason on last month).
Unapproved.

Learn more before you release a plugin again, what don't you understand in this ?
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 03-02-2014 at 04:15.
ConnorMcLeod is offline
Reply


Thread Tools
Display Modes

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 04:59.


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