Raised This Month: $ Target: $400
 0% 

Help me for a Plugin!!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
WARRIORS
Senior Member
Join Date: May 2009
Location: German
Old 12-28-2009 , 11:11   Help me for a Plugin!!
Reply With Quote #1

Hello people can help me a little of this plugin

"Deagle Duel" The incongruity people only get the deagle
"Knife duel" The people only get a knife, all weapons are taken away

"Is freeday" The terrorist gets freeday next round in a blue color glow

"HE DUEL" The last people to get DB always uses a DB until one is dead

"Kill All Ct" CT be obtained weapons and TE gets all the weapons to kill the CTs to

"Freeday For All" Everybody gets freeday


So it's all set but if

In freeday the players will not glow
Vidually at Knife and no weapons are taken away
And when He vidually they can not get U


Code:

#include <amxmodx>
#include <engine>
#include <fun>
#include <hamsandwich>

#define VERSION "1.0"
#define PLUGIN "Last Request"
#define AUTHOR " K2 ."

enum
{
MENU_NONE,
MENU_MAIN,
MENU_SUB1,
};

new g_current_menu[33];

public plugin_init()
{
register_clcmd("say /lr", "ShowMainMenu");
register_plugin("Last Request", "1.0", "Proton");
}

public client_putinserver(id)
{
g_current_menu[id] = MENU_NONE;
}

public ShowMainMenu(id)
{
if( !is_user_alive( id ) )
return PLUGIN_HANDLED;

g_current_menu[id] = MENU_MAIN;

new menu = menu_create("Last Request", "MainMenuHandle");
menu_additem(menu, "Deagle Duell", "1");
menu_additem(menu, "FreeDay", "2");
menu_additem(menu, "Knife Fight", "3");
menu_additem(menu, "HE Duell", "4");
menu_additem(menu, "Kill All CT", "5");
menu_additem(menu, "FreeDay for All", "6");

menu_display(id, menu);

return PLUGIN_HANDLED;
}

public MainMenuHandle( id , menu , item )
{
if ( item == MENU_EXIT )
{
g_current_menu[id] = MENU_NONE;
menu_destroy(menu);
return;
}

static _access, info[3], callback;
menu_item_getinfo(menu, item, _access, info, charsmax(info), _, _, callback);
menu_destroy(menu);

switch ( str_to_num( info ) )
{
case 1:
{
give_item( id , "weapon_deagle" )
set_user_health( id , 100 );
client_print(id, print_chat, "You selected Deagle Duell");
}
case 2:
{
client_print(id, print_chat, "You selected FreeDay");
}
case 3:
{
give_item( id , "weapon_knife" )
set_user_health( id , 100 );
client_print(id, print_chat, "You selected Knife Fight");
}
case 4:
{
client_print(id, print_chat, "You selected HE Duell");
}
case 5:
{
client_print(id, print_chat, "You selected Kill All CT");
}
case 6:
{
client_print(id, print_chat, "You selected FreeDay For All");
}
}
}


Thank You for Help

sry for my bad english ^^
__________________
GameServer+Plugins Life Support Täglich wer Online

Link:

http://warriors-clan.com

Direktlink:

http://warriors-clan.com/livezilla/livezilla.php

Wir helfen Gerne
WARRIORS is offline
MouseSplash!
Veteran Member
Join Date: Dec 2009
Location: En Tu Mente!
Old 12-28-2009 , 11:41   Re: Help me for a Plugin!!
Reply With Quote #2

last resquest here...


Spanish Version:

http://forums.alliedmods.net/showthr...=ultimo+pedido


and ins this thread go to POST Number 14... is the english version
MouseSplash! is offline
Mxnn
Veteran Member
Join Date: Aug 2009
Location: AT MY HOME
Old 12-28-2009 , 12:57   Re: Help me for a Plugin!!
Reply With Quote #3

In a enumeration the last parameter mustn't have a colon in the final (",")
Mxnn is offline
Reply


Thread Tools
Display Modes

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 04:07.


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