24.02.2018, 04:46
#include <sscanf>
enum AdminLevel
{
Level
}
new AdminInfo[MAX_PLAYERS][AdminLevel];
CMD:aod(playerid, params[])
{
if(AdminInfo[playerid][Level] < 1) return SendClientMessage(playerid, -1, "{C3C3C3}(INFO) You dont have priviliges to use this command");
{
new aod, str[128];
if(sscanf(params, "ui", aod)) return SendClientMessage(playerid, -1, "{c3c3c3}(INFO)Now you are on duty");
format(str, sizeof(str), "{EFB509}(INFO)You are on duty", aod);
SendClientMessage(playerid, -1, str);
SetPlayerHealth(playerid, 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999);
SetPlayerColor(playerid, COLOR_GREEN);
return 1;
}
}
CMDaod(playerid, params[])
{
if(AdminInfo[playerid][Level] < 1) return SendClientMessage(playerid, -1, "{C3C3C3}(INFO) You dont have priviliges to use this command");
{
new oaod, str[128];
if(sscanf(params, "ui", oaod)) return SendClientMessage(playerid, -1, "{c3c3c3}(INFO)Now you are on off duty");
SendClientMessage(playerid, -1, str);
SetPlayerHealth(playerid, 100);
SetPlayerColor(playerid, COLOR_WHITE);
return 1;
}
}
enum AdminLevel
{
Level
}
new AdminInfo[MAX_PLAYERS][AdminLevel];
CMD:aod(playerid, params[])
{
if(AdminInfo[playerid][Level] < 1) return SendClientMessage(playerid, -1, "{C3C3C3}(INFO) You dont have priviliges to use this command");
{
new aod, str[128];
if(sscanf(params, "ui", aod)) return SendClientMessage(playerid, -1, "{c3c3c3}(INFO)Now you are on duty");
format(str, sizeof(str), "{EFB509}(INFO)You are on duty", aod);
SendClientMessage(playerid, -1, str);
SetPlayerHealth(playerid, 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999999 99999999999999999999999999999999999999999999999);
SetPlayerColor(playerid, COLOR_GREEN);
return 1;
}
}
CMDaod(playerid, params[])
{
if(AdminInfo[playerid][Level] < 1) return SendClientMessage(playerid, -1, "{C3C3C3}(INFO) You dont have priviliges to use this command");
{
new oaod, str[128];
if(sscanf(params, "ui", oaod)) return SendClientMessage(playerid, -1, "{c3c3c3}(INFO)Now you are on off duty");
SendClientMessage(playerid, -1, str);
SetPlayerHealth(playerid, 100);
SetPlayerColor(playerid, COLOR_WHITE);
return 1;
}
}