Raised This Month: $ Target: $400
 0% 

Check if admin online & antispam


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Lawnmoverman
Member
Join Date: Jan 2017
Old 01-28-2017 , 12:48   Check if admin online & antispam
Reply With Quote #1

Can someone add a function to check if any of admins are online & th last time /calladmin has been used at least 10 minutes ago! And if I can get player who called name in the link.

PHP Code:
#include <amxmodx>
#include <amxmisc>

public plugin_init()
{
    
register_plugin("Call admin""0.1""Lawnmoverman")
    
register_concmd("say /calladmin","cmdCallAdmin"0" - Will call call admin to join the server, if he is not sleeping.")
}

public 
cmdCallAdmin(id)
{    
if ((!
admin_is_online) && (passed_at_least_10_minutes)) { // Something like this
    
show_motd(id"http://www.nozgaming.eu/calladmin.php?name=PLAYER_NAME_HERE"// <--
    
return PLUGIN_HANDLED
}
else {
client_print(idprint_chat"There are admins online, or someone has already called an admin. Do not abuse!")
return 
PLUGIN_HANDLED
}

Lawnmoverman is offline
 



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 20:48.


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