Quote:
Originally Posted by OciXCrom
How does this information help?!
|
I think he`s just bumping his thread
Quote:
Originally Posted by F a R a Z
For Counter Strike 1.6
|
why did you opened two threads with different accounts and Requesting one thing ?! anyway with a little search found it.
This will give gravity or speed to vips on their choice. and on respawn their Gravity and speed will be normal. openmenu command /vipmenu
Persian:Faraz Jan test kon agar Taghiri mikhasti begoo anjam midam. dar zemn ghanoona ro ham re`ayat kon
PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <cstrike>
#include <fun>
#pragma semicolon 1
#define PLUGIN "VIP Menu"
#define VERSION "1.0"
#define AUTHOR "FuckTheSchool"
#define Speed 400.0 // Must remain a float.
#define Gravity 400.0 // Must remain a float.
#define Access ADMIN_LEVEL_H // Edit the access to use /vipmenu.
new Benefited[33];
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR);
RegisterHam(Ham_Spawn, "player", "HamBurger_Spawn");
register_clcmd("say /vipmenu", "CmdVIPMenu");
}
public HamBurger_Spawn(id)
{
Benefited[id] = false;
}
public CmdVIPMenu(id)
{
if(get_user_flags(id) & Access)
{
if(!Benefited[id])
{
new Format[64];
new VIPMenu = menu_create("Choose your benefits:", "HandleCmdVIPMenu");
menu_additem(VIPMenu, "Speed");
menu_additem(VIPMenu, "400 Gravity");
menu_display(id, VIPMenu);
}
else
ColorChat(id, "^4You have already used your rewards!");
}
else
ColorChat(id, "^4You have no access to this command!");
}
public HandleCmdVIPMenu(id, VIPMenu, item)
{
if(item == MENU_EXIT) return;
switch(item+1)
{
case 1: set_user_maxspeed(id, Speed);
case 2:
{
new Float:Grav = Gravity/get_cvar_pointer("sv_gravity"); // Gravity will always act as 400 and will not be compared to current server gravity.
set_user_gravity(id, Grav);
}
}
Benefited[id] = true;
}
stock ColorChat(const index, const string[], {Float, Sql, Resul,_}:...)
{
new msg[191], players[32], count = 1;
static len;
len = formatex(msg, charsmax(msg), "^4[PREFIX]^1 "); // Edit the prefix here.
vformat(msg[len], charsmax(msg) - len, string, 3);
if(index) players[0] = index;
else get_players(players,count,"ch");
for (new i = 0; i < count; i++)
{
if(is_user_connected(players[i]))
{
message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"),_, players[i]);
write_byte(players[i]);
write_string(msg);
message_end();
}
}
}