Raised This Month: $12 Target: $400
 3% 

Shield Tutorial


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Freecode
Never Fall Asleep
Join Date: Jan 2004
Old 09-25-2004 , 14:03   Shield Tutorial
Reply With Quote #1

Heres a new way of getting whether a person has shield.
By sequence
Code:
#include <amxmodx> #include <amxmisc> #include <engine> public plugin_init() {     register_plugin("Shield","1.0","default");     register_clcmd("get_shield","shield",ADMIN_LEVEL_A,": name") } public shield(id) {     new arg[32]     read_argv(1,arg,31)         new vid = cmd_target(id,arg,8);         new seq = entity_get_int(vid,EV_INT_sequence);         new name[32]     get_user_name(vid,name,31);         //SEQUENCCE 89 = Shield + Knife     //SEQUENCE 94 = Shield + Pistol     //SEQUENCE 98 = Shield only (right clicked)             if(seq == 89)     {         client_print(0,3,"%s has shield and a knife",name);     }     else if(seq == 94)     {         client_print(0,3,"%s has shield and a pistol",name);     }     else if(seq == 98)     {         client_print(0,3,"%s has shield",name);     }         client_print(0,3,"Sequence: %d",seq);         return PLUGIN_HANDLED }
Freecode is offline
 


Thread Tools
Display Modes

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 07:15.


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