AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [Solved]Steamid Help (https://forums.alliedmods.net/showthread.php?t=225356)

oxygen935 09-03-2013 15:32

[Solved]Steamid Help
 
Hello everyone,

I'm wondering if i can give special abilities(by code) to a player with the selected steamid. How can i check if a player has the selected steamid?

Thanks in advance,
Oxygen

ANTICHRISTUS 09-03-2013 15:40

Re: Steamid Help
 
try to check the code of a plugin already doing it, like players models.

dark_style 09-03-2013 15:41

Re: Steamid Help
 
equali() ?

oxygen935 09-03-2013 15:42

Re: Steamid Help
 
Quote:

Originally Posted by dark_style (Post 2027806)
equali() ?

if u want explain more...
Thanks for reply

TheDS1337 09-03-2013 15:45

Re: Steamid Help
 
Code:
#include <amxmodx> #include <amxmisc> #define CLIENT_STEAMID "" new bool:g_haveAbility[33]; public client_putinserver(id) {     new authid[32];     get_user_authid(id, authid, charsmax(authid));         if (equal(authid, CLIENT_STEAMID))     {         g_haveAbility[id] = true;           } }

oxygen935 09-03-2013 15:46

Re: Steamid Help
 
Quote:

Originally Posted by DeagLe.Studio (Post 2027812)
Code:
#include <amxmodx> #include <amxmisc> #define CLIENT_STEAMID "" new bool:g_haveAbility[33]; public client_putinserver(id) {     new authid[32];     get_user_authid(id, authid, charsmax(authid));         if (equal(authid, CLIENT_STEAMID))     {         g_haveAbility[id] = true;           } }

hmmm okay, thanks anyways, i think this is what i am looking for.
Problem Solved!


All times are GMT -4. The time now is 18:53.

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