 |
|
Senior Member
|

02-06-2013
, 11:50
Re: Blockmaker SteamID
|
#4
|
Quote:
Originally Posted by WeeZick
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?
__________________
No salvation. Only madness.
|
|
|
|