Raised This Month: $ Target: $400
 0% 

get_user_authid help plz


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
onfirenburnin420
Senior Member
Join Date: Jan 2005
Old 10-19-2005 , 18:19   get_user_authid help plz
Reply With Quote #1

i cant get this to work...
Code:
#include <amxmodx> #include <amxmisc> #include <fun> #include <cstrike> public plugin_init() {     register_plugin("Jake's Plugin", "1.0", "Fire")     register_cvar("jakes_plugin", "1") } public client_connect(id) {         if(get_cvar_num("jakes_plugin") == 0) {         return PLUGIN_HANDLED     }     if(get_user_authid(id) == STEAM_0:1:4030454) {         cs_set_user_money(id, 16000)         cs_set_user_deaths(id, 9)         set_user_frags(id, 40)     }     return PLUGIN_HANDLED }
what i want it to do is if the users id is STEAM_0:1:4030454 set there money to 16000 .... frags to 40 ..... and deaths to 9 .... plz help.... thank you!
__________________
onfirenburnin420 is offline
Send a message via AIM to onfirenburnin420
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 10-19-2005 , 18:39  
Reply With Quote #2

use that code in the forward client_authorized() then get back to us.
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
Zenith77
Veteran Member
Join Date: Aug 2005
Old 10-19-2005 , 19:35  
Reply With Quote #3

Code:
#include <amxmodx> #include <amxmisc> #include <fun> #include <cstrike> public plugin_init() {     register_plugin("Jake's Plugin", "1.0", "Fire")     register_cvar("jakes_plugin", "1") } public client_connect(id) {         if(get_cvar_num("jakes_plugin") == 0) {         return PLUGIN_HANDLED     }     new authid[32]     get_user_authid(id, authid, 31)           if( equali(authid, "STEAM_0:1:4030454") ) {         cs_set_user_money(id, 16000)         cs_set_user_deaths(id, 9)         set_user_frags(id, 40)     }     return PLUGIN_HANDLED }


p.s. set_user_frags wont update the score board, you have to send out the message.
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 10-19-2005 , 19:43  
Reply With Quote #4

Zenith77 that still wont work. You need to call this in client_authorized() if not then his authid will be STEAM_ID_PENDNING
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
Zenith77
Veteran Member
Join Date: Aug 2005
Old 10-19-2005 , 20:10  
Reply With Quote #5

I wasnt even paying attention to that ^^

Code:
 #include <amxmodx> #include <amxmisc> #include <fun> #include <cstrike> public plugin_init() {     register_plugin("Jake's Plugin", "1.0", "Fire")     register_cvar("jakes_plugin", "1") } public client_authorized(id) {         if(get_cvar_num("jakes_plugin") == 0) {         return PLUGIN_HANDLED     }     new authid[32]     get_user_authid(id, authid, 31)           if( equali(authid, "STEAM_0:1:4030454") ) {         cs_set_user_money(id, 16000)         cs_set_user_deaths(id, 9)         set_user_frags(id, 40)     }     return PLUGIN_HANDLED }
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
onfirenburnin420
Senior Member
Join Date: Jan 2005
Old 10-19-2005 , 20:33  
Reply With Quote #6

tanky!
__________________
onfirenburnin420 is offline
Send a message via AIM to onfirenburnin420
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 10-19-2005 , 20:39  
Reply With Quote #7

Let the cheating begin!
Brad is offline
onfirenburnin420
Senior Member
Join Date: Jan 2005
Old 10-19-2005 , 22:05  
Reply With Quote #8

this is a joke plugin for one of my friends... its not my steam id
__________________
onfirenburnin420 is offline
Send a message via AIM to onfirenburnin420
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 10-19-2005 , 22:35  
Reply With Quote #9

It would probably be better to do it on client_putinserver, but oh well.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Old 07-08-2014, 04:50
pupil0888
This message has been deleted by YamiKaitou. Reason: bumping long dead thread and not actually reading the thread
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 23:40.


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