06.02.2016, 20:39
Hi what it is i have this /aduty in my script
if(strcmp(cmd, "/aduty", true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 1)
{
if(AdminDuty[playerid] == 0)
{
AdminDuty[playerid] = 1;
if(PlayerInfo[playerid][pAdmin] >= 1)
{
format(string, sizeof(string), "Server Administrator %s[%d] is now on Admin duty!", GetPlayerNameEx(playerid), playerid);
SendClientMessageToAll(COLOR_CORAL, string);
SetPlayerColor(playerid, COLOR_RED);
td[playerid] = Create3DTextLabel("[Admin Duty]",0x009999FF,0.0,0.0,0.0,40.0,1);
Attach3DTextLabelToPlayer(td[playerid],playerid, 0.0, 0.0,-0.9);
return 1;
}
but was wondering how can i make it so when on duty admin has god mode on?
if(strcmp(cmd, "/aduty", true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 1)
{
if(AdminDuty[playerid] == 0)
{
AdminDuty[playerid] = 1;
if(PlayerInfo[playerid][pAdmin] >= 1)
{
format(string, sizeof(string), "Server Administrator %s[%d] is now on Admin duty!", GetPlayerNameEx(playerid), playerid);
SendClientMessageToAll(COLOR_CORAL, string);
SetPlayerColor(playerid, COLOR_RED);
td[playerid] = Create3DTextLabel("[Admin Duty]",0x009999FF,0.0,0.0,0.0,40.0,1);
Attach3DTextLabelToPlayer(td[playerid],playerid, 0.0, 0.0,-0.9);
return 1;
}
but was wondering how can i make it so when on duty admin has god mode on?