Raised This Month: $ Target: $400
 0% 

UNBURYME help


Post New Thread Reply   
 
Thread Tools Display Modes
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 09-23-2005 , 15:48  
Reply With Quote #21

Code:
// UNBURYME, v0.4 // By boadmin // This plugin will allow anyone to unbury themselves in a server. // Use amx_unbury or say /unbury // Thanks to MistaGee and v3x for help fixing my plugin... #include <amxmodx> #include <amxmisc> #include <fun> new unbury_used[33]; public plugin_init() {     register_plugin("UNBURYME","0.4","boadmin");     register_cvar("amx_unbury_amount","1");     if(checkmap("rats"))     {         register_concmd("say /unbury", "cmd_unbury", ADMIN_CHAT);         register_concmd("amx_unbury", "cmd_unbury", ADMIN_CHAT);         register_event("RoundTime", "set_amount", "bc");     } } public set_amount(id) {     unbury_used[id]=0; } public cmd_unburyme(id, level, cid) {     if(!cmd_access(id, level, cid, 0) || !is_user_alive(id) || unbury_used[id]<=get_cvar_num("amx_unbury_amount"))     {         return PLUGIN_HANDLED;     }     new origin[3];     get_user_origin(id, origin);     origin[2] += 50;     set_user_origin(id, origin);     new name[32];     get_user_name(id, name, 31);     unbury_used[id]=0;         client_print(0, print_chat, "%s has been Unburied", name);     return PLUGIN_HANDLED; } stock checkmap(arg[]) {     new mapname[64];     get_mapname(mapname,63);         if(containi(mapname,arg)!=-1)     {         return 1;     }         return 0; }
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
scriptyboy
BANNED
Join Date: Sep 2005
Old 09-24-2005 , 00:21  
Reply With Quote #22

this last code u posted doesnt work for de_rats at all...can you find whats wrong with it??
scriptyboy is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 09-24-2005 , 07:00  
Reply With Quote #23

Take off the check map part and try again. If that doesn't do it, take off the counter part and try again.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
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 09:18.


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