Raised This Month: $ Target: $400
 0% 

Const reading problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 12-11-2014 , 14:25   Re: Const reading problem
Reply With Quote #1

Now I think that I understood what you need.

Code:
#include <amxmodx> new const g_maps[][] = {     "de_inferno",     "de_dust2" } new bool: AllowOnThisMap public plugin_init(){     register_plugin("Drop Awp","0.3","Faval")         new map[32]     get_mapname(map, charsmax(map))     for(new i=0;i< sizeof g_maps;i++)     {         if(equal(map, g_maps[i]))         {             AllowOnThisMap = true             break         }     }     if(!AllowOnThisMap)     {         register_event("WeapPickup","Kontroll","b","1=18")     }     else     {         pause("a")     } } public Kontroll(id) {     new llama = read_data(0)     client_print(llama,print_center,"AWP pole lubatud.")     engclient_cmd(llama, "drop","weapon_awp")     client_cmd(llama,"drop weapon_awp") }
__________________

Last edited by HamletEagle; 12-11-2014 at 14:26.
HamletEagle 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 15:32.


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