Raised This Month: $ Target: $400
 0% 

exec user command


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
verzoteX
Member
Join Date: Nov 2011
Location: Montenegro / Podgorica
Old 03-17-2012 , 12:52   exec user command
Reply With Quote #1

can any one help me out i tryed my self and faild all i want is : if player gets nemesis. that player says automatically in chat /start. it executes automatically the command "say /start" like if i whent to execute to a player with amx_exec the command amx_exec nick "say /start" but it must be done automatically when player gets nemesis. please replay and hel me as fast as possilble thanks in advanc.

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <zombieplague>

#define PLUGIN "arena start"
#define VERSION "1.0"
#define AUTHOR "verzotex"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
}

public 
zp_user_infected_post(idinfector)
{
    if (
zp_get_user_nemesis(id))
    {
    }

verzoteX is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 03-17-2012 , 13:58   Re: exec user command
Reply With Quote #2

Code:
client_cmd(id, "say /start")
__________________
fysiks is offline
verzoteX
Member
Join Date: Nov 2011
Location: Montenegro / Podgorica
Old 03-17-2012 , 15:45   Re: exec user command
Reply With Quote #3

thanks worked great
verzoteX is offline
Reply



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 22:27.


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