Raised This Month: $ Target: $400
 0% 

Blockmaker SteamID


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
WeeZick
Member
Join Date: Oct 2012
Location: Gothenburg, Sweden
Old 02-06-2013 , 11:01   Blockmaker SteamID
Reply With Quote #1

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
WeeZick is offline
Kard1nal
Senior Member
Join Date: Dec 2012
Location: Russia
Old 02-06-2013 , 11:11   Re: Blockmaker SteamID
Reply With Quote #2

Post the full code.
Kard1nal is offline
Send a message via Skype™ to Kard1nal
WeeZick
Member
Join Date: Oct 2012
Location: Gothenburg, Sweden
Old 02-06-2013 , 11:34   Re: Blockmaker SteamID
Reply With Quote #3

The whole blockmaker?
WeeZick is offline
P1raten
Senior Member
Join Date: Feb 2010
Old 02-06-2013 , 11:50   Re: Blockmaker SteamID
Reply With Quote #4

Quote:
Originally Posted by WeeZick View Post
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.
P1raten is offline
WeeZick
Member
Join Date: Oct 2012
Location: Gothenburg, Sweden
Old 02-06-2013 , 12:24   Re: Blockmaker SteamID
Reply With Quote #5

What you mean with flags?
WeeZick is offline
WeeZick
Member
Join Date: Oct 2012
Location: Gothenburg, Sweden
Old 02-06-2013 , 14:37   Re: Blockmaker SteamID
Reply With Quote #6

Look i really need help with this so i whould be verry happy if someone helped me out
WeeZick is offline
P1raten
Senior Member
Join Date: Feb 2010
Old 02-06-2013 , 16:55   Re: Blockmaker SteamID
Reply With Quote #7

Quote:
Originally Posted by WeeZick View Post
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.
__________________
No salvation. Only madness.
P1raten is offline
ironskillz1
AlliedModders Donor
Join Date: Jul 2012
Location: Sweden
Old 02-07-2013 , 01:41   Re: Blockmaker SteamID
Reply With Quote #8

Quote:
Originally Posted by P1raten View Post
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
__________________
I have many private and unique plugins for Jailbreak and Hide'N'Seek. PM me for more info.

Pm me.

Check out my roulette site.
ironskillz1 is offline
Send a message via Skype™ to ironskillz1
P1raten
Senior Member
Join Date: Feb 2010
Old 02-07-2013 , 04:22   Re: Re: Blockmaker SteamID
Reply With Quote #9

Quote:
Originally Posted by ironskillz1 View Post
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.
__________________
No salvation. Only madness.
P1raten is offline
WeeZick
Member
Join Date: Oct 2012
Location: Gothenburg, Sweden
Old 02-07-2013 , 08:25   Re: Blockmaker SteamID
Reply With Quote #10

Well whats the right section then?
And if you dont understand i want to store the (STEAMID) not some flags.
WeeZick is offline
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 11:11.


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