Raised This Month: $ Target: $400
 0% 

shield for TS??


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
sulb
Junior Member
Join Date: Apr 2009
Old 07-27-2009 , 06:20   shield for TS??
Reply With Quote #1

Quote:
#pragma tabsize 0
#include <amxmodx>
#include <cstrike>
#include <fakemeta>
#define SOUND "items/gunpickup2.wav"
#define WEAPON "weapon_shield"
#define REASON "Tactical Shield is restricted for CTs!"
public plugin_init()
{
register_plugin("Drop Shields","0.1","Dizzy")
register_cvar("amx_dropshields","1")
register_forward(FM_EmitSound, "forward_emit_sound")
}
public forward_emit_sound(ent, chan, snd[]) {
if (equal(snd, SOUND) && get_cvar_num("amx_dropshields") && drop_ct_shields())
return FMRES_SUPERCEDE
return FMRES_IGNORED
}
stock bool:drop_ct_shields() {
new cts[32], num, bool:result = false, id
get_players(cts, num, "ae", "CT")
for (new i = 0; i < num; ++i) {
id = cts[i]
if (cs_get_user_shield(id)) {
result = true
engclient_cmd(id, "drop", WEAPON)
client_print(id, print_center, REASON)
}
}
return result
}
how change ts
sulb 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 18:24.


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