Raised This Month: $ Target: $400
 0% 

Help me with changelevel


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Arje
Senior Member
Join Date: Apr 2020
Location: Córdoba, Argentina
Old 05-30-2020 , 20:30   Help me with changelevel
Reply With Quote #1

Hi ! I would like only the admins when I put say /d2, the server changelevel de_dust2, i try this?¿

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


public plugin_init()
{
    
register_plugin("Je Je""1.0""Je")

    
register_clcmd("say /d2""mapita")
    
}

public 
mapita(id)
{
    if(!
is_user_admin(id) )
    {    
    
server_cmd"changelevel de_dust2" )
    }
    return 
PLUGIN_CONTINUE

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


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