PDA

View Full Version : Admin Flags


Mike4Told
11-15-2014, 01:58
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
$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.

bl4nk
11-15-2014, 15:49
https://sm.alliedmods.net/api/index.php?fastload=show&id=497&