Thread: Admin Flags
View Single Post
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