Hello, I'm currently creating a Resident Evil Mod for ZombieSurvivalists.co.uk .
However, I've become a bit stuck when it comes to menus as Ive never looked into them.
For a start, I want to make something similarly basic to the Admin Buy menu plugin, or use it as a base.
However, rather than limiting it to VIP/Admin flags, I wish for it to disable the Normal Buy Menu and to show this new menu on spawn (which is the start of a round).
The reason for this is I've edited the .CTX files to create weapons with similar statistics to Resident Evil and blocked those that didnt fit into the game and have increased the prices on all weapons.
I already use the Admin Buy menu for VIPs to purchase the chicago typewriter, a galil with a thompson world model. However it wouldnt be a problem to set this to !VIP or the new menu to !guns or something.
The second menu I need is rather than this, where I check if the person has VIP to see if they can use the Wesker model, and if not set them to the hunk model instead:
PHP Code:
{
case 0 :
{
if (GetAdminFlag(aid,Admin_Custom1,Access_Effective))
{
SetEntityHealth(indx,150);
SetEntityModel(indx,"models/player/pil/re1/wesker/wesker_pil.mdl");
}
else
{
SetEntityModel(indx,"models/player/toco/hunk.mdl");
SetEntityHealth(indx,100);
SetEntityGravity(indx,1.0);
SetEntPropFloat(indx, Prop_Data, "m_flLaggedMovementValue", 1.0);
}
}
The script sets all survivors to 0 and >1 to zombie classes which is done on a cycle. How would I go about creating a menu for VIPs to provide a choice between 3 or 4 skins rather than been forced to use one that they may not like. However, it cannot provide this option to T's as they are zombie classes.