Raised This Month: $ Target: $400
 0% 

win frags


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Ricky
Senior Member
Join Date: Jul 2005
Old 07-06-2010 , 03:42   win frags
Reply With Quote #1

i had used a similar script that worked in the past but lost it. Can anyone help solve what i'm trying to do here?

public plugin_init()
{
register_event("SendAudio", "T_frags", "a", "2&%!MRAD_terwin")
register_event("SendAudio", "CT_frags", "a", "2&%!MRAD_ctwin")
}

public CT_frags(id)
{
if(CsTeams:cs_get_user_team(id) == CS_TEAM_CT)
{
set_user_frags(id, get_user_frags(id) +3)

message_begin(MSG_BROADCAST,get_user_msgid("S coreInfo"));
write_byte(id);
write_short(get_user_frags(id));
write_short(cs_get_user_deaths(id));
write_short(0);
write_short(1);
message_end();
}
return PLUGIN_HANDLED
}
Ricky is offline
 



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 07:09.


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