Raised This Month: $ Target: $400
 0% 

help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 03-08-2017 , 16:35   Re: help
Reply With Quote #2

Code:
#include <amxmodx> #include <cstrike> #include <hamsandwich> #define ADMIN_FLAG ADMIN_LEVEL_A public plugin_init() {     register_plugin("Money On Spawn", "1.0", "DoNii");     RegisterHam(Ham_Spawn, "player", "fw_HamSpawnPost", 1); } public fw_HamSpawnPost(id) {     if(!(is_user_alive(id) && get_user_flags(id) & ADMIN_FLAG))     return HAM_IGNORED;     cs_add_user_money(id, 2000);         return PLUGIN_CONTINUE; } cs_add_user_money(id, const amount) {     if(!is_user_connected(id))     return 0;     cs_set_user_money(id, cs_get_user_money(id) + amount);     return amount; }
__________________

Last edited by edon1337; 03-09-2017 at 15:12.
edon1337 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 17:48.


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