Raised This Month: $ Target: $400
 0% 

How to get keyvalue for trigger_changelevel?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
MihaiGamerXD
Member
Join Date: Aug 2018
Old 11-18-2018 , 10:00   How to get keyvalue for trigger_changelevel?
Reply With Quote #1

Hello, I am here for a question, how to get keyvalue for trigger_changelevel?

Example:
PHP Code:
include <amxmodx>
include <
amxmisc>
include <
engine>
include <
fakemeta>
include <
hamsandwich>

public 
plugin_init() {
    
register_plugin("Change Level","1.0","MihaiGamerXD")
    
RegisterHam(Ham_Touch,"trigger_changelevel","ChangeLevel",1)
}

public 
ChangeLevel() {
    new 
mapname[32]
    
copy_keyvalue("trigger_changelevel"63"map"63mapname31)
    
server_cmd("changelevel %s",mapname)

But it doesn't work. I did something wrong?
MihaiGamerXD 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 07:34.


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