Teams with Permission System? -
Uberanwar - 15.08.2013
Hi guys, in my server there are 5 teams that I want to set ''permission'' in the teams in my server, Medic, COP, FBI, SWAT and ARMY. What I mean about ''permission'' system is.. uh like you can hire, fire.. Let me explain, there will be a leader, RCON admins can use /giveleader [id] [team] & of course /removeleader [id]. And the team leader can hire and fire people.. Is it possible to make? This feature is actually in SFCRRPG Gamemode too, but it's only Army. And it's different.. Btw I'm using dini+dudb, and dcmd.
Sorry for my bad english hope you guys can understand me..
Re: Teams with Permission System? -
Vanter - 15.08.2013
use Enum
add for example my script
pawn Код:
enum pInfo
{
pPass,
pRegisteredIP[16],
pIP[16],
pCash,
pScore,
//Bank
pBankAccount,
pAccountData,
//Permissions
pDonator,
pSwat,
pArmy,
pAdmin,
Re: Teams with Permission System? -
Uberanwar - 15.08.2013
One question, Why some of your ''uhh what do u call that'' starts from p? pAdmin etc. What are the functions and why do I need it?
Re: Teams with Permission System? -
Uberanwar - 15.08.2013
Bump
Re: Teams with Permission System? -
Vanter - 15.08.2013
You can remove the P if you want to, it's like that to make it specific.
Re: Teams with Permission System? -
Uberanwar - 15.08.2013
Ohh. But is it like it's for saving or something like that?
Re: Teams with Permission System? -
Vanter - 15.08.2013
We add the P to make it enum related, it's all about your way of scripting.
and yes ENUM is for saving
Re: Teams with Permission System? -
Uberanwar - 15.08.2013
Hmm, I dont have enums on my gamemode, I use dini+dudb, things like score money etc actually saves. But what I see when I close sa-mpserver.exe it ''resets the account''. Is it because I dont have enums?