Raised This Month: $ Target: $400
 0% 

Remove ammo problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 04-10-2006 , 07:42  
Reply With Quote #1

Code:
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> #include <cstrike> #define PLUGIN "Test rip ammo" #define VERSION "1.1 rc1" #define AUTHOR "TEST" #define free 10 public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)     set_task(float(free),"steal_ammo",_,_,_,"b") } public steal_ammo() {     new Player[32], PlayerCount     get_players(Player, PlayerCount, "ach")     /*     "a" - Don't return dead players     "c" - Skip bots     "h" - Skip HLTV     */     for (new i = 0; i <= PlayerCount; i++) {         if ( is_user_connected(Player[i]) ) {             cs_set_weapon_ammo(Player[i],0)             new clip, ammo, wid = get_user_weapon(Player[i], clip, ammo)             cs_set_user_bpammo(Player[i],cs_get_weapon_id(wid),0)             set_hudmessage(255, 255, 255, 0.11, 0.31, 0, 6.0, 12.0)             show_hudmessage(Player[i], "Oh no! The grim reaper has killed all your ammo ;P")         }     }     return PLUGIN_HANDLED }
[ --<-@ ] Black Rose 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 16:38.


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