Raised This Month: $ Target: $400
 0% 

Help me with changelevel


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
supertrio17
Senior Member
Join Date: May 2020
Location: Serbia
Old 05-31-2020 , 11:18   Re: Help me with changelevel
Reply With Quote #1

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

#define COMMAND "changelevel de_dust2"
#define DATA_FLAG "j"

public plugin_init()
{
    
register_plugin("Je Je""1.2""Je")
    
register_clcmd("say /d2""change_map")
    
}

public 
change_map(id)
{
    if (
has_flag(idDATA_FLAG))
    {
        
server_cmd(COMMAND)
    }

Tested and working

Btw, I added so you can change which flag you want your admin to have so he can use this command. Otherwise even VIP's could change your map, because most of VIP's have flag "t" or "q" wich are considered as admin flags

Last edited by supertrio17; 05-31-2020 at 11:21.
supertrio17 is offline
Reply



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:06.


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