Raised This Month: $ Target: $400
 0% 

[HELP] Money in Name


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
extream87
Senior Member
Join Date: Aug 2011
Old 03-28-2014 , 09:06   [HELP] Money in Name
Reply With Quote #1

I want to incorporate you can see the money in name if you are only teammate.
I want do until the end of buytime if a player spends money the money value in name change.
Code:
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <cstrike> #include <fakemeta> #include <hamsandwich> #define PLUGIN "Money in Name" #define VERSION "1.0" #define AUTHOR "extream87" public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)         RegisterHam(Ham_Spawn, "player", "fwHamPlayerSpawnPost", 1)     register_forward(FM_ClientUserInfoChanged, "fw_ClientInfoChanged") } public fwHamPlayerSpawnPost(id) {       money_in_name(id) } stock money_in_name(id) {     new szName[32]     get_user_name(id, szName, charsmax(szName))     new iLen = strlen(szName)           new iPos = iLen - 1     if( szName[iPos] == '>' )     {           for( new i = 1; i < 13; i++)         {           if( szName[iPos - i] == '<' )         {               iLen = iPos - i             szName[iLen] = '^0'             break         }         }     }           format(szName[iLen], charsmax(szName) - iLen, szName[iLen-1] == ' ' ? "<%d$>" : " <%d$>", cs_get_user_money(id))     set_user_info(id, "name", szName) } public fw_ClientInfoChanged(id, buffer) {     if(!is_user_connected(id))         return FMRES_IGNORED         static OldName[32], NewName[32]         get_user_name(id, OldName, charsmax(OldName))         engfunc(EngFunc_InfoKeyValue, buffer, "name", NewName, charsmax(NewName))         if (equal(NewName, OldName))         return FMRES_IGNORED         return FMRES_SUPERCEDE }
extream87 is offline
 



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 06:03.


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