Raised This Month: $ Target: $400
 0% 

Need help with assigning values.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
KRoT@L
Member
Join Date: Aug 2004
Location: http://www.amxmod.net
Old 08-29-2004 , 23:38  
Reply With Quote #6

Code:
#include <amxmodx> #include <amxmisc> #include <cstrike> new afk_team[32] new afk_model[32][32] public plugin_init() {     register_plugin("AFK and Back","0.1","twistedeuphoria")     register_clcmd("say","say_event")     return PLUGIN_CONTINUE } public say_event(id) {   new said[192] read_args(said,191) new name[32] get_user_name(id,name,31) if(containi(said,"afk") != -1) {     if (is_user_alive(id))     {         cs_get_user_model(id,afk_model[id],31)         afk_team[id] = get_user_team(id)         user_kill(id,1)         client_print(0,print_chat,"*DEAD* %s : I'll be back...",name)         client_cmd(id,"jointeam 6")     } } else if(containi(said,"back") != -1) {     client_print(0,print_chat,"%s : I'm back...",name)     if(afk_team[id] == 1)         client_cmd(id,"jointeam 1")     else         client_cmd(id,"jointeam 2")     client_cmd(id,"wait")     client_cmd(id,"slot5")     cs_set_user_model(id,afk_model[id]) } return PLUGIN_CONTINUE }
KRoT@L 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:14.


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