AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   Admin Flags (https://forums.alliedmods.net/showthread.php?t=251544)

Mike4Told 11-15-2014 01:58

Admin Flags
 
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.

bl4nk 11-15-2014 15:49

Re: Admin Flags
 
https://sm.alliedmods.net/api/index....d=show&id=497&


All times are GMT -4. The time now is 10:31.

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