Raised This Month: $ Target: $400
 0% 

change map in plugin script?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
suhdude
Senior Member
Join Date: Mar 2016
Location: Sweden
Old 11-12-2017 , 23:10   change map in plugin script?
Reply With Quote #1

I want people to be able to type /mapname in chat to change the level.
I have tried this:

engine_changelevel(de_dust2); //undefined symbol

change_level(de_dust2); //undefined symbol

console_cmd(0, "rcon changelevel de_dust2") //not working


client_cmd(0, "rcon changelevel de_dust2") //not working

console_cmd(0 "rcon amx_map de_dust2") //not working

etc etc..
I don't understand what I need to #include..

Also, is there a smart way of not having to do 50 different functions, one for every map?

Thanks

Last edited by suhdude; 11-12-2017 at 23:11.
suhdude 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:30.


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