Raised This Month: $12 Target: $400
 3% 

Admin Flags


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mike4Told
Member
Join Date: Sep 2013
Old 11-15-2014 , 01:58   Admin Flags
Reply With Quote #1

Basically, what I need is an example of how to detect a client's flag, or whether they don't have it.

An example in PHP it would be like this:

PHP Code:
<?php
$user1 
'r'//user 1 has flag "R"
$user2 '';  // user 2 doesn't have a flag

if ($user == "r"){
echo 
"You have blah, blah, blah.";
}else{
echo 
"Donate blah blah blah.";
}
?>
The echo's would be automatic messages.

I would like to be able to send automatic messages using SourcePawn. I am rebuilding the AdSQL plugin.

Thanks in advance.
Mike4Told is offline
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 11-15-2014 , 15:49   Re: Admin Flags
Reply With Quote #2

https://sm.alliedmods.net/api/index....d=show&id=497&
bl4nk is offline
Reply


Thread Tools
Display Modes

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 17:44.


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