07.04.2011, 23:38
Sistema de adminstraзгo com poucas linhas (Include)
pawn Код:
//=================[ ADMIN SYSTEM ]
#define IsPlayerInAdmins(%0) ((Player[%0][Nivel] > 0)?(true):(false))
#define GetPlayerAdminLevel(%0) Player[%0][Nivel]
#define SetPlayerAdminLevel(%0,%1) Player[%0][Nivel] = %1
enum pInfo
{
bool: Logado,
Nivel,
}
new Player[MAX_PLAYERS][pInfo];
native IsPlayerInAdmin(playerid);
native GetPlayerAdminLevel(playerid);
native SetPlayerAdminLevel(playerid, levelid);