Raised This Month: $ Target: $400
 0% 

Help With a plugin Jailbreak


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
sasukebr
Member
Join Date: Feb 2012
Location: Porto Alegre
Old 06-16-2012 , 20:21   Help With a plugin Jailbreak
Reply With Quote #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.
sasukebr is offline
Send a message via MSN to sasukebr Send a message via Skype™ to sasukebr
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 06-16-2012 , 21:42   Re: Help With a plugin Jailbreak
Reply With Quote #2

I've answered this for you before - You have braces out of place, missing your CVar pointer, a random line that has no purpose at all, haven't created your global variables, defining new variables in a loop, inefficient checks, and your function is never called.

If you want me to help you with this issue ... again ... then explain exactly how you want it to work.
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.

Last edited by hornet; 06-16-2012 at 21:43.
hornet is offline
Reply


Thread Tools
Display Modes

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:19.


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