AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   Blockmaker SteamID (https://forums.alliedmods.net/showthread.php?t=207753)

WeeZick 02-06-2013 11:01

Blockmaker SteamID
 
The thing i wanna do is to set a steamid on my blockmaker so only that steamid can use the blockmaker, and i found this to try:
{
new SteamID[32];
get_user_authid(id, SteamID, 31);

if(equal(SteamID, STEAMID_A) || equal(SteamID, STEAMID_LAN) || g_gived_access[id])
{
if(PCM_banned[id])
{
PCM_Print(id, "You'r SteamID didnt get a match!");
PCM_Print(id, "You'r SteamID is banned from PCM.");
set_task(2.0, "Task_ShowInfo", id);
}
else
{
ShowMainMenu(id);
}
}
else
{
PCM_Print(id, "You'r SteamID didnt get a match!");
PCM_Print(id, "You'r SteamID is either banned from PCM or you arent eligble to use PCM.");
set_task(2.0, "Task_ShowInfo", id);
}
return PLUGIN_HANDLED;
}
And i have maked an enum with those steamid i want to have access to /bm. But i get errors can anybody help me please

Kard1nal 02-06-2013 11:11

Re: Blockmaker SteamID
 
Post the full code.

WeeZick 02-06-2013 11:34

Re: Blockmaker SteamID
 
The whole blockmaker?

P1raten 02-06-2013 11:50

Re: Blockmaker SteamID
 
Quote:

Originally Posted by WeeZick (Post 1888466)
The thing i wanna do is to set a steamid on my blockmaker so only that steamid can use the blockmaker, and i found this to try:
{
new SteamID[32];
get_user_authid(id, SteamID, 31);

if(equal(SteamID, STEAMID_A) || equal(SteamID, STEAMID_LAN) || g_gived_access[id])
{
if(PCM_banned[id])
{
PCM_Print(id, "You'r SteamID didnt get a match!");
PCM_Print(id, "You'r SteamID is banned from PCM.");
set_task(2.0, "Task_ShowInfo", id);
}
else
{
ShowMainMenu(id);
}
}
else
{
PCM_Print(id, "You'r SteamID didnt get a match!");
PCM_Print(id, "You'r SteamID is either banned from PCM or you arent eligble to use PCM.");
set_task(2.0, "Task_ShowInfo", id);
}
return PLUGIN_HANDLED;
}
And i have maked an enum with those steamid i want to have access to /bm. But i get errors can anybody help me please

Uh, why not just use flags?

WeeZick 02-06-2013 12:24

Re: Blockmaker SteamID
 
What you mean with flags?

WeeZick 02-06-2013 14:37

Re: Blockmaker SteamID
 
Look i really need help with this so i whould be verry happy if someone helped me out

P1raten 02-06-2013 16:55

Re: Blockmaker SteamID
 
Quote:

Originally Posted by WeeZick (Post 1888588)
Look i really need help with this so i whould be verry happy if someone helped me out

If you don't know what I mean when I say flags then I suggest that you go and read some tutorials.

However, if this is something that you don't know how to do on your own then you're in the wrong section.

ironskillz1 02-07-2013 01:41

Re: Blockmaker SteamID
 
Quote:

Originally Posted by P1raten (Post 1888671)
If you don't know what I mean when I say flags then I suggest that you go and read some tutorials.

However, if this is something that you don't know how to do on your own then you're in the wrong section.

Dude he dont want flags he want steamid

P1raten 02-07-2013 04:22

Re: Re: Blockmaker SteamID
 
Quote:

Originally Posted by ironskillz1 (Post 1888935)
Dude he dont want flags he want steamid

Im aware.

But just because he thinks that storing a steamID is the best way to do it does not mean that it is.

And like i mentioned above, flags seems more appropriate.

WeeZick 02-07-2013 08:25

Re: Blockmaker SteamID
 
Well whats the right section then?
And if you dont understand i want to store the (STEAMID) not some flags.


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

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