Raised This Month: $ Target: $400
 0% 

start money


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
yamin
BANNED
Join Date: Jan 2012
Location: Sharjah
Old 02-29-2012 , 05:38   start money
Reply With Quote #1

thanks

Last edited by yamin; 03-02-2012 at 16:52.
yamin is offline
GordonFreeman (RU)
Veteran Member
Join Date: Jan 2010
Location: Uzbekistan
Old 02-29-2012 , 06:25   Re: start money
Reply With Quote #2

Code:
#include <amxmodx> #include <cstrike> #include <hamsandwich> #define SILVER ADMIN_LEVEL_G #define GOLDEN ADMIN_LEVEL_H public plugin_init( ){     register_plugin("VIP Moneys","","[LF] | Dr.Freeman")     RegisterHam( Ham_Spawn , "player" , "fwPlayerSpawnPost" , 1 ) } public fwPlayerSpawnPost(id){     if(is_user_alive(id)) {         if(get_user_flags(id)&SILVER&&cs_get_user_money(id)<1337)             cs_set_user_money(id,1337)         else if(get_user_flags(id)&GOLDEN&&cs_get_user_money(id)<2500)             cs_set_user_money(id,2500)             } }
__________________
The functional way is the right way

Last edited by GordonFreeman (RU); 02-29-2012 at 06:25.
GordonFreeman (RU) is offline
yamin
BANNED
Join Date: Jan 2012
Location: Sharjah
Old 02-29-2012 , 13:04   Re: start money
Reply With Quote #3

Quote:
if(get_user_flags(id)&SILVER&&cs_get_user_mon ey(id)<1337)
cs_set_user_money(id,1337)
it should be 1550
yamin is offline
Shadymn
Senior Member
Join Date: Sep 2010
Old 02-29-2012 , 13:13   Re: start money
Reply With Quote #4

Quote:
Originally Posted by yamin View Post
it should be 1550
maybe that is impossible and he made it
Shadymn is offline
kramesa
Veteran Member
Join Date: Feb 2011
Location: Brazil
Old 02-29-2012 , 13:31   Re: start money
Reply With Quote #5

Try this:

Code:
#include <amxmodx> #include <cstrike> #include <hamsandwich> new bool:RoundStartPlayer[33]; public plugin_init() {     RegisterHam(Ham_Spawn , "player", "Player_Spawn", 1) } public client_connect(id) {     RoundStartPlayer[id] = true; } public Player_Spawn(id) {     if(is_user_alive(id))     {         if(RoundStartPlayer[id] == true)         {             if(get_user_flags(id) & ADMIN_LEVEL_G)             {                 cs_set_user_money(id, 1550)                 return PLUGIN_HANDLED;             }                         if(get_user_flags(id) & ADMIN_LEVEL_H)             {                 cs_set_user_money(id, 2000)                 return PLUGIN_HANDLED;             }         }         RoundStartPlayer[id] = false;     }     return PLUGIN_HANDLED; }
__________________

Last edited by kramesa; 02-29-2012 at 13:47.
kramesa 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 15:00.


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