dcmd_aond(playerid, params[])
{
#pragma unused params
if(Player[playerid][admin] < 1)
{
if(Player[playerid][aDuty] == 1) return SendClientMessage(playerid, COLOR_RED, "Du bist bereits On Duty!");
else
{
Player[playerid][aDuty] = 1;
new str[128], pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
format(str, sizeof(str),"** %s hat sich als Supporter angemeldet! **", pname);
SendClientMessageToAll(COLOR_LILA, str);
SetPlayerColor(playerid, COLOR_LILA);
SetPlayerArmour(playerid, 100);
}
}
return 1;
}
Funktioniert nicht.
dcmd_aoff(playerid, params[])
{
#pragma unused params
if(Player[playerid][admin] < 1)
{
if(Player[playerid][aDuty] == 0) return SendClientMessage(playerid, COLOR_RED, "Du bist bereits Off Duty!");
else
{
Player[playerid][aDuty] = 0;
new str[128], pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
format(str, sizeof(str),"** %s hat sich als Supporter abgemeldet! **", pname);
SendClientMessageToAll(COLOR_LILA, str);
SetPlayerColor(playerid, COLOR_WHITE);
SetPlayerArmour(playerid, 0);
}
}
return 1;
}
Auch nicht.
Keine Reaktion Ingame.
Passiert nix.