Raised This Month: $51 Target: $400
 12% 

XP Mod 1.2.4


Post New Thread Reply   
 
Thread Tools Display Modes
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 08-21-2011 , 01:00   Re: XP Mod 1.0.7
Reply With Quote #31

Quote:
Originally Posted by modernwarfare View Post
ok thx guys

i think this will be moved to trash

but i will still use this in one of my server

and will still like adding more upgrades and etc..


And doc-holiday

why you dont answer at your battle field plugin?

I gave some ideas and etc..
cuz i b busy lol.. ive been trying to figure things out on how to do certain things the version i have on my server right now is pretty uptodate with fixes and what not. but its still got issues ive been working on.
Doc-Holiday is offline
DrunkenKoZ
Greetings, mortal.
Join Date: Aug 2008
Old 08-21-2011 , 02:55   Re: XP Mod 1.0.7
Reply With Quote #32

These plugins are open source for a reason. As long as he gives credit for other peoples codes there should be no problem.


Also

You can feel free to use this. It will allow you to give and take xp away from people if you're an admin.

Code:
register_concmd( "amx_givexp", "xp_givexp", ADMIN_BAN, "<target> <amount>" )
register_concmd( "amx_takexp", "xp_takexp", ADMIN_BAN, "<target> <amount>" )
 
public xp_givexp( id, level,cid )
{
     if( ! cmd_access ( id, level, cid, 3 ) )
         return PLUGIN_HANDLED;
 
     new target[32], amount[21], reason[21];
 
     read_argv( 1, target, 31 );
     read_argv(2, amount, 20 );
     read_argv( 3, reason, 20 );
 
     new player = cmd_target( id, target, 8 );
 
     if( ! player ) 
         return PLUGIN_HANDLED;
 
     new admin_name[32], player_name[32];
     get_user_name( id, admin_name, 31 );
     get_user_name( player, player_name, 31 );
 
     new expnum = str_to_num( amount );
 
     PlayerXP[player] += expnum;
 
     switch( get_cvar_num ( "amx_show_activity" ) )
     {
          case 1: client_print( 0, print_chat, "ADMIN: gave %i points for %s.", expnum, player_name );
          case 2: client_print( 0, print_chat, "ADMIN %s: gave %i points for %s.", admin_name, expnum, player_name );
     }
 
     client_print( player, "[AMXX] You received %i points. (Total: %d)", expnum, PlayerXP[player] );
 
     SaveData( id )
 
     return PLUGIN_CONTINUE;
}
 
public xp_takexp( id, level,cid )
{
    if( ! cmd_access ( id, level, cid, 3 ) )
        return PLUGIN_HANDLED;
 
    new target[32], amount[21], reason[21];
 
    read_argv( 1, target, 31 );
    read_argv( 2, amount, 20 );
    read_argv( 3, reason, 20 );
 
    new player = cmd_target( id, target, 8 );
 
    if( ! player ) 
        return PLUGIN_HANDLED;
 
    new admin_name[32], player_name[32];
    get_user_name( id, admin_name, 31 );
    get_user_name( player, player_name, 31 );
 
    new expnum = str_to_num( amount );
 
    PlayerXP[player] -= expnum;
 
    switch(get_cvar_num("amx_show_activity"))
    {
          case 1: client_print( 0, print_chat, "ADMIN: took %i points from %s.", expnum, player_name );
          case 2: client_print( 0, print_chat, "ADMIN %s: took %i points from %s.", admin_name, expnum, player_name );
     }
 
     client_print( player, "You received %i points. (Total: %d)", expnum, PlayerXP[player] );
 
     SaveData( id )
 
     return PLUGIN_CONTINUE;
}
Credit goes to [X]-RayCat for making this code.

Last edited by DrunkenKoZ; 08-21-2011 at 03:18.
DrunkenKoZ is offline
modernwarfare
Senior Member
Join Date: Aug 2011
Location: sweden
Old 08-21-2011 , 07:18   Re: XP Mod 1.0.7
Reply With Quote #33

Quote:
Originally Posted by DrunkenKoZ View Post
These plugins are open source for a reason. As long as he gives credit for other peoples codes there should be no problem.


Also

You can feel free to use this. It will allow you to give and take xp away from people if you're an admin.

Code:
register_concmd( "amx_givexp", "xp_givexp", ADMIN_BAN, "<target> <amount>" )
register_concmd( "amx_takexp", "xp_takexp", ADMIN_BAN, "<target> <amount>" )
 
public xp_givexp( id, level,cid )
{
     if( ! cmd_access ( id, level, cid, 3 ) )
         return PLUGIN_HANDLED;
 
     new target[32], amount[21], reason[21];
 
     read_argv( 1, target, 31 );
     read_argv(2, amount, 20 );
     read_argv( 3, reason, 20 );
 
     new player = cmd_target( id, target, 8 );
 
     if( ! player ) 
         return PLUGIN_HANDLED;
 
     new admin_name[32], player_name[32];
     get_user_name( id, admin_name, 31 );
     get_user_name( player, player_name, 31 );
 
     new expnum = str_to_num( amount );
 
     PlayerXP[player] += expnum;
 
     switch( get_cvar_num ( "amx_show_activity" ) )
     {
          case 1: client_print( 0, print_chat, "ADMIN: gave %i points for %s.", expnum, player_name );
          case 2: client_print( 0, print_chat, "ADMIN %s: gave %i points for %s.", admin_name, expnum, player_name );
     }
 
     client_print( player, "[AMXX] You received %i points. (Total: %d)", expnum, PlayerXP[player] );
 
     SaveData( id )
 
     return PLUGIN_CONTINUE;
}
 
public xp_takexp( id, level,cid )
{
    if( ! cmd_access ( id, level, cid, 3 ) )
        return PLUGIN_HANDLED;
 
    new target[32], amount[21], reason[21];
 
    read_argv( 1, target, 31 );
    read_argv( 2, amount, 20 );
    read_argv( 3, reason, 20 );
 
    new player = cmd_target( id, target, 8 );
 
    if( ! player ) 
        return PLUGIN_HANDLED;
 
    new admin_name[32], player_name[32];
    get_user_name( id, admin_name, 31 );
    get_user_name( player, player_name, 31 );
 
    new expnum = str_to_num( amount );
 
    PlayerXP[player] -= expnum;
 
    switch(get_cvar_num("amx_show_activity"))
    {
          case 1: client_print( 0, print_chat, "ADMIN: took %i points from %s.", expnum, player_name );
          case 2: client_print( 0, print_chat, "ADMIN %s: took %i points from %s.", admin_name, expnum, player_name );
     }
 
     client_print( player, "You received %i points. (Total: %d)", expnum, PlayerXP[player] );
 
     SaveData( id )
 
     return PLUGIN_CONTINUE;
}
Credit goes to [X]-RayCat for making this code.
thx man i knew that someone must to be nice

, and trying it then will add and give credits
__________________
Im supporting/coding XP Mod Plugin
Free Palestine
R.I.P. The 2967 American people that lost their lives 9/11 and R.I.P.
The 48,644 Afghan and 1,690,903 Iraqi people that paid the ultimate price for a crime they did not commit.



modernwarfare is offline
Send a message via MSN to modernwarfare Send a message via Skype™ to modernwarfare
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 08-21-2011 , 11:54   Re: XP Mod 1.0.7
Reply With Quote #34

We don't care if he uses our code... but a pure copy and paste from twenty plugins isn't coding..... and releasing a plugin that has been done beforeobv cuz he doesn't script.... means he can't support it. And the code is just copy and pastes from other plugins.... I don't care if he uses the code but to release a copy and paste of other plugins and calling it your own is just dumb.... use the code to learn from and make up your own.
Doc-Holiday is offline
modernwarfare
Senior Member
Join Date: Aug 2011
Location: sweden
Old 08-21-2011 , 12:31   Re: XP Mod 1.0.7
Reply With Quote #35

Quote:
Originally Posted by Doc-Holiday View Post
We don't care if he uses our code... but a pure copy and paste from twenty plugins isn't coding..... and releasing a plugin that has been done beforeobv cuz he doesn't script.... means he can't support it. And the code is just copy and pastes from other plugins.... I don't care if he uses the code but to release a copy and paste of other plugins and calling it your own is just dumb.... use the code to learn from and make up your own.

i never said it was mine , i gave credits idiot!
__________________
Im supporting/coding XP Mod Plugin
Free Palestine
R.I.P. The 2967 American people that lost their lives 9/11 and R.I.P.
The 48,644 Afghan and 1,690,903 Iraqi people that paid the ultimate price for a crime they did not commit.



modernwarfare is offline
Send a message via MSN to modernwarfare Send a message via Skype™ to modernwarfare
Old 08-21-2011, 14:08
modernwarfare
This message has been deleted by ConnorMcLeod. Reason: Use edit button... 43 posts deleted OMG
Old 08-21-2011, 14:43
modernwarfare
This message has been deleted by ConnorMcLeod. Reason: Use edit button... 43 posts deleted OMG
Apollyon
SourceMod Donor
Join Date: Dec 2007
Location: California
Old 08-21-2011 , 15:09   Re: XP Mod 1.0.8
Reply With Quote #36

I think a moderator needs to move this to "scripting help".
__________________
Apollyon is offline
modernwarfare
Senior Member
Join Date: Aug 2011
Location: sweden
Old 08-21-2011 , 15:20   Re: XP Mod 1.0.8
Reply With Quote #37

Quote:
Originally Posted by Apollyon View Post
I think a moderator needs to move this to "scripting help".
mmm idk but its no problem the mod can do what he thinks
__________________
Im supporting/coding XP Mod Plugin
Free Palestine
R.I.P. The 2967 American people that lost their lives 9/11 and R.I.P.
The 48,644 Afghan and 1,690,903 Iraqi people that paid the ultimate price for a crime they did not commit.



modernwarfare is offline
Send a message via MSN to modernwarfare Send a message via Skype™ to modernwarfare
Tirant
Veteran Member
Join Date: Jul 2008
Location: Los Angeles, California
Old 08-21-2011 , 21:35   Re: XP Mod 1.0.8
Reply With Quote #38

http://forums.alliedmods.net/showthread.php?t=11201
__________________

PM me if you're interested in buying the Credits addition for Base Builder
Battlefield Rebirth [66% done]
Call of Duty: MW2 [100% done]
Base Builder [100% done]
Tirant is offline
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 08-21-2011 , 23:36   Re: XP Mod 1.0.8
Reply With Quote #39

Quote:
Originally Posted by Tirant View Post
HAHA thanks for posting that
Doc-Holiday is offline
modernwarfare
Senior Member
Join Date: Aug 2011
Location: sweden
Old 08-22-2011 , 01:25   Re: XP Mod 1.0.8
Reply With Quote #40

i saw that before posting this

i know it maybe go to trash

just for you
__________________
Im supporting/coding XP Mod Plugin
Free Palestine
R.I.P. The 2967 American people that lost their lives 9/11 and R.I.P.
The 48,644 Afghan and 1,690,903 Iraqi people that paid the ultimate price for a crime they did not commit.



modernwarfare is offline
Send a message via MSN to modernwarfare Send a message via Skype™ to modernwarfare
Old 08-22-2011, 01:46
modernwarfare
This message has been deleted by ConnorMcLeod. Reason: Use edit button... 43 posts deleted OMG
Old 08-22-2011, 08:10
modernwarfare
This message has been deleted by ConnorMcLeod. Reason: Use edit button... 43 posts deleted OMG
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 01:23.


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