Teams with Permission System?
#1

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..
Reply
#2

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,
Reply
#3

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?
Reply
#4

Bump
Reply
#5

You can remove the P if you want to, it's like that to make it specific.
Reply
#6

Ohh. But is it like it's for saving or something like that?
Reply
#7

We add the P to make it enum related, it's all about your way of scripting.
and yes ENUM is for saving
Reply
#8

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?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)