HI I have fd random if ct say /fd its choes freeday to 1 teror.
buy this not work if ct say this ( /fd) It chooses itself
pliz fix this
PHP Code:
#include <amxmodx>
#include <fun>
#include <cstrike>
public plugin_init()
register_clcmd("say /fd", "CmdFd");
public CmdFd(id)
{
if(cs_get_user_team(id) == CS_TEAM_CT)
{
new iPlayers[32], iNum;
get_players(iPlayers, iNum, "ae", "TERRORIST");
new adname[33]
get_user_name(id, adname, 23)
set_hudmessage( 0 , 255 , 0 , -1.0 , 0.28 , 2 , 1.1 , 1.1 , 0.01 , 0.01 );
show_hudmessage(0, "%s You have FreeDay This Round Enjoy!", adname)
set_user_rendering(iPlayers[random(iNum)], kRenderFxGlowShell, 255, 0, 0, kRenderTransAlpha, 150);
}
}