|
Author
|
Message
|
|
Member
Join Date: Feb 2012
Location: Porto Alegre
|

06-16-2012
, 20:21
Help With a plugin Jailbreak
|
#1
|
[QUOTE]
someone help me with this plugin
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
public plugin_init() {
register_plugin("Player live","1.0","SasukeBR")
public players_hud()
{
if(get_pcvar_num(cvar_showplayers))
{ "cvar_showplayers"}
g_guards = 0;
g_prisoners = 0;
for(new i = 0; i < g_max_clients; i++)
{
new id = i; g_max_clients;
if(is_user_alive(id) && cs_get_user_team(id) == CS_TEAM_CT)
{
g_guards++;
}
else if(is_user_alive(id) && cs_get_user_team(id) == CS_TEAM_T)
{
g_prisoners++;
}
}
set_hudmessage(0, 255, 0, -1.0, 0.01)
show_hudmessage(0,"Prisoners: %i^nGuards: %i", g_guards, g_prisoners)
}
}
Last edited by sasukebr; 06-16-2012 at 20:24.
|
|
|
|