AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   get_user_authid help plz (https://forums.alliedmods.net/showthread.php?t=19562)

onfirenburnin420 10-19-2005 18:19

get_user_authid help plz
 
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!

Xanimos 10-19-2005 18:39

use that code in the forward client_authorized() then get back to us.

Zenith77 10-19-2005 19:35

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.

Xanimos 10-19-2005 19:43

Zenith77 that still wont work. You need to call this in client_authorized() if not then his authid will be STEAM_ID_PENDNING

Zenith77 10-19-2005 20:10

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 }

onfirenburnin420 10-19-2005 20:33

tanky!

Brad 10-19-2005 20:39

Let the cheating begin!

onfirenburnin420 10-19-2005 22:05

this is a joke plugin for one of my friends... its not my steam id

Hawk552 10-19-2005 22:35

It would probably be better to do it on client_putinserver, but oh well.


All times are GMT -4. The time now is 23:40.

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