Raised This Month: $ Target: $400
 0% 

action thru register_concmd to dead players


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Minimum
Senior Member
Join Date: Jun 2006
Old 05-20-2007 , 17:22   Re: action thru register_concmd to dead players
Reply With Quote #8

Is this what you are looking for?

Code:
public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)     register_concmd("amx_func","MyFunc",ADMIN_ADMIN,"My Function's Description") } public MyFunc(id) {     new playerid, playername[64]     read_argv(1,playername,63)     // Flag Ids - cmd_target(adminid,playername,flagid)     // 1 - obey immunity     // 2 - allow yourself     // 4 - must be alive     // 8 - can't be bot     playerid = cmd_target(id,playername,2)     client_print(playerid,print_chat,"Oh no!  Someone has executed amx_func on you!") }
Minimum is offline
Send a message via AIM to Minimum Send a message via MSN to Minimum
 



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 06:42.


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