11.03.2018, 14:12
Hello, I have made a command but did I over see something because it gives me tons of errors
PHP код:
CMD:aduty(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >= 2)
{
if (!AdminDuty[playerid])
{
PlayerInfo[playerid][pAdminDuty] = 1;
SendClientMessageEx(playerid, COLOR_GRAD2, "You are now Off-Duty.");
}
else
{
PlayerInfo[playerid][pAdminDuty] = 0;
SendClientMessageEx(playerid, COLOR_GRAD2, "You are now On-Duty.");
}
else
{
SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
}
return 1;
}