25.07.2012, 22:06
At Top
ZCMD:
About the name thing you want, you must use a saving file include like y_ini
PHP код:
enum pInfo
{
AdminLevel,
AdminDuty,
}
new PlayerInfo[MAX_PLAYERS][pInfo];
PHP код:
CMD:adminduty(playerid, params[])
{
if( PlayerInfo[playerid][AdminLevel] > 1 )
{
PlayerInfo[playerid][AdminDuty]=1;
SetPlayerColor(playerid, #FF0000);
}
else return 0;
}
CMD:exampleadmincmd(playerid, params[])
{
if(( PlayerInfo[playerid][AdminLevel] > 1 ) && ( PlayerInfo[playerid][AdminDuty] == 1 )
{
// Your Command
}
else return 0;
}