altis life admin levels
Hia just a question trying to make an admin shop would it be like this???
case "Admin menu":
{
switch(true) do
{
case (playerSide != civilian): {"You are not an admin!"};
case (__GETC__(life_adminlevel) < 3): {"You are not a admin!"};
default
{
["Admin shop",
[
]
];
};
};
};
Please help c:
Also how would i make an npc that only admins can use would it be like this...
this enableSimulation false; this addAction["Admin Item Shop",life_fnc_virt_menu,"admin"]; this allowDamage false; this addAction["Admin Clothing Shop",life_fnc_clothingMenu,"admin"]; this addAction["Admin Weapon Shop",life_fnc_weaponShopMenu,"admin"];
case "Admin menu":
{
switch(true) do
{
case (playerSide != civilian): {"You are not an admin!"};
case (__GETC__(life_adminlevel) < 3): {"You are not a admin!"};
default
{
["Admin shop",
[
]
];
};
};
};
Please help c:
Also how would i make an npc that only admins can use would it be like this...
this enableSimulation false; this addAction["Admin Item Shop",life_fnc_virt_menu,"admin"]; this allowDamage false; this addAction["Admin Clothing Shop",life_fnc_clothingMenu,"admin"]; this addAction["Admin Weapon Shop",life_fnc_weaponShopMenu,"admin"];