Thread: Shield Tutorial
View Single Post
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