does this works??
#1

#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;
}
}
Reply


Messages In This Thread
does this works?? - by Jithu - 24.02.2018, 04:46
Re: does this works?? - by jamesbond007 - 24.02.2018, 04:49
Re: does this works?? - by Jithu - 24.02.2018, 04:51
Re: does this works?? - by N0FeaR - 24.02.2018, 05:02
Re: does this works?? - by jamesbond007 - 24.02.2018, 05:04
Re: does this works?? - by Jithu - 24.02.2018, 05:06
Re: does this works?? - by rfr - 24.02.2018, 06:21
Re: does this works?? - by Kasis - 24.02.2018, 06:56
Re: does this works?? - by Jithu - 24.02.2018, 07:15
Re: does this works?? - by PepsiCola23 - 24.02.2018, 09:05

Forum Jump:


Users browsing this thread: 2 Guest(s)