only ct can start the game its for jailbreak ts vs ts
commands :
/gamemenu (to show menu)
/gm (to show menu)
/stop (to stop the game)
Angrybirds (i have skins)
Snowball (i have skins)
Zombieball (i have skins)
here is the cods its work but the dogbol is not dogball its he granes can any fixit and add that 3 game
PHP Code:
#include <amxmodx>
#include <fun>
#include <hamsandwich>
#include <colorchat>
#include <fakemeta>
#define PLUGIN "gamemenu"
#define VERSION "1.1"
#define AUTHOR "Ricardo"
new const Prefix[] = "^4[Dodgeball]^3"
new dodgeball[] = "models/v_dodgeball.mdl";
new dodgeball2[] = "models/p_dodgeball.mdl";
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("CurWeapon", "Knifemodel", "b", "1=1")
register_clcmd("say /gm", "CmdDodgeball")
register_clcmd("say /gamemenu", "CmdDodgeball")
register_logevent("EventRoundEnd", 2, "1=Round_End")
register_logevent("EventRoundStart", 2, "1=Round_Start")
}
public plugin_precache()
{
precache_model(dodgeball)
precache_model(dodgeball2)
}
public Event_Playerspawn(id)
{
server_cmd( "mp_friendlyfire 0" );
}
public CmdDodgeball(id)
{
new menu = menu_create("Game:", "MenuHandler")
menu_additem(menu, "Dodgeball", "1")
menu_setprop(menu, MPROP_EXIT, MEXIT_ALL)
menu_display(id, menu, 0)
}
public MenuHandler(id, menu, item)
{
if (item == MENU_EXIT)
{
menu_destroy(menu)
return PLUGIN_HANDLED
}
new data[6], szName[64], acces, callback
menu_item_getinfo(menu, item, acces, data, charsmax(data), szName, charsmax(szName), callback)
new key = str_to_num(data)
switch(key)
{
case 1: CmdDodgeball2(id)
}
return PLUGIN_HANDLED
}
public CmdDodgeball2(id)
{
new name[32], players[32], iNum
get_user_name(id, name, 31)
get_players(players, iNum, "ch")
for (new i; i <iNum; i++)
{
strip_user_weapons(players[i])
give_item(players[i], "weapon_hegrenade")
set_task(2.0, "GiveBalls", players[i], _,_, "b")
set_pev(players[i], pev_viewmodel2, dodgeball)
set_pev(players[i], pev_weaponmodel2, dodgeball2)
}
server_cmd( "mp_friendlyfire 1" );
ColorChat(id, GREY, "%s ^4%s^3 has started the Menu and the day that have been chosen is: ^4>Dodgeball^3!<", Prefix, name)
}
public GiveBalls(id)
{
if (is_user_alive(id))
{
give_item(id, "weapon_hegrenade")
set_pev(id, pev_viewmodel2, dodgeball)
set_pev(id, pev_weaponmodel2, dodgeball2)
}
else
{
}
}
public Knifemodel(id)
{
if (get_user_weapon(id) == CSW_HEGRENADE)
{
}
}
public EventRoundEnd()
{
}