Raised This Month: $ Target: $400
 0% 

set_user_frags ??


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Shinzon
Senior Member
Join Date: Feb 2005
Location: Hellfire
Old 08-23-2005 , 02:28   set_user_frags ??
Reply With Quote #1

Hmmm,

don't work...
maybe, don't look at (for me) unknown specific...

any hints ?
__________________
Shinzon

CS:1.6 [max-torgau.de] Fun Server 83.142.83.26:27016
CS:1.6 [max-torgau.de] DeathMatch 83.142.83.26:27017
CS:1.6 [max-torgau.de] .::N!CkYs fUn sErVeR wC3::. XP-SAVE 83.142.83.26:27035
nihil aliud est ebrietas quam voluntaria insania
Shinzon is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 08-23-2005 , 04:49  
Reply With Quote #2

Code?
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
n0obie4life
Veteran Member
Join Date: Dec 2004
Old 08-23-2005 , 05:18  
Reply With Quote #3

I thought i saw a post that said it doesn't work too.
__________________
Plugins:
none

n0obie4life is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 08-23-2005 , 16:14  
Reply With Quote #4

It works but will not update the scoreboard display, so you have to do it yourself or wait for something else to update it. This is how you would do it in CS:

Code:
    message_begin(MSG_BROADCAST,get_user_msgid("ScoreInfo")); write_byte(id); write_short(get_user_frags(id)); write_short(cs_get_user_deaths(id)); write_short(0); write_short(1); message_end();
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Shinzon
Senior Member
Join Date: Feb 2005
Location: Hellfire
Old 08-24-2005 , 10:48  
Reply With Quote #5

This is the code dont't work:

Code:
/* * *   Change Score *   Version 2.0 *   Author: Freecode;   <a href="mailto:[email protected]">[email protected]</a> (MSN)  FCunnClan (AIM) * *   This plugin will will change persons Frags and Deaths. * *   Requirements: *      Compiled on 0.9.4. *      Should work successfully on 0.9.3 *      Tested successfully on 0.9.4. *      Should work successfully on 0.9.5. * *   Admin Commands: *      amx_chscore <nick/@CT/@TERRORIST> <frags #> <deaths #> * *   To Do:   *      Nothing :) * */ #include <amxmodx> #include <amxmisc> #include <cstrike> new gmsgScoreInfo   public chscore(id,level,cid) {     if (!cmd_access(id,level,cid,2))     {       return PLUGIN_HANDLED     }     new victim[32],deathsI[32],fragsI[32]     read_argv(1,victim,31)     read_argv(2,fragsI,31)     new frags = str_to_num(fragsI)             read_argv(3,deathsI,31)     new deaths = str_to_num(deathsI)         if (victim[0]=='@')     {         new team[32], inum         get_players(team,inum,"e",victim[1])         if (inum==0)         {             console_print(id,"[AMX] No clients found on such team.")             return PLUGIN_HANDLED         }         for (new i=0;i<inum;++i)         {             new teams = get_user_team(team[i])               set_user_frags(team[i],frags)             cs_set_user_deaths(team[i],deaths)             message_begin(MSG_ALL,gmsgScoreInfo)             write_byte( team[i] )               write_short(frags)             write_short(deaths)             write_short(0)             write_short(teams)             message_end()         }     }     else     {         new user = cmd_target(id,victim,0)         new authid[32]         get_user_authid(user,authid,31)           if (!user)         {             console_print(id,"[AMX] No such client found.")             return PLUGIN_HANDLED         }         new teams = get_user_team(user)         set_user_frags(user,frags)         cs_set_user_deaths(user,deaths)         message_begin(MSG_ALL,gmsgScoreInfo)         write_byte(user)         write_short(frags)         write_short(deaths)         write_short(0)         write_short(teams)         message_end()     }     return PLUGIN_HANDLED } public plugin_init() {     register_plugin("Change Score","2.0","Freecode")     register_clcmd("amx_chscore","chscore",ADMIN_CVAR," - amx_chscore <nick/@CT/@TERRORIST> <frags #> <deaths #>")     gmsgScoreInfo = get_user_msgid("ScoreInfo") }

Sorry, but im not experienced enough to fix it by myself...
__________________
Shinzon

CS:1.6 [max-torgau.de] Fun Server 83.142.83.26:27016
CS:1.6 [max-torgau.de] DeathMatch 83.142.83.26:27017
CS:1.6 [max-torgau.de] .::N!CkYs fUn sErVeR wC3::. XP-SAVE 83.142.83.26:27035
nihil aliud est ebrietas quam voluntaria insania
Shinzon is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 08-24-2005 , 14:57  
Reply With Quote #6

I dunno, it works for me at least.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Shinzon
Senior Member
Join Date: Feb 2005
Location: Hellfire
Old 08-24-2005 , 20:44  
Reply With Quote #7

Hmmmm....

on compiling i got:

Code:
//// changescore.sma
// D:\Download\AMX\scripting\changescore.sma(55) : error 017: undefined symbol "set_user_frags"
// D:\Download\AMX\scripting\changescore.sma(77) : error 017: undefined symbol "set_user_frags"
//
// 2 Errors.
// Could not locate output file compiled\changescore.amx (compile failed).
Maybe u can mail me ur compiled .amxx ??

Or help me to fix problem ?
(Which i would prefer, u know ?)

Thx.
__________________
Shinzon

CS:1.6 [max-torgau.de] Fun Server 83.142.83.26:27016
CS:1.6 [max-torgau.de] DeathMatch 83.142.83.26:27017
CS:1.6 [max-torgau.de] .::N!CkYs fUn sErVeR wC3::. XP-SAVE 83.142.83.26:27035
nihil aliud est ebrietas quam voluntaria insania
Shinzon is offline
Zenith77
Veteran Member
Join Date: Aug 2005
Old 08-24-2005 , 20:53  
Reply With Quote #8

what version of amxx are you using?
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
nightscreem
Veteran Member
Join Date: Jul 2004
Location: Belgium
Old 08-24-2005 , 21:11  
Reply With Quote #9

don't you have to #include <fun>
__________________
- Bye bye!
nightscreem is offline
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 08-24-2005 , 21:23  
Reply With Quote #10

Quote:
Originally Posted by nightscreem
don't you have to #include <fun>
set_user_frags is amxmodx i believe.
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
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 14:23.


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