CMD:ac(playerid,params[])
{
if(PlayerInfo[playerid][Level] < 1) return SendClientMessage(playerid, 0xF69521AA, "You can't use this command!");
if(isnull(params)) return SendClientMessage(playerid, 0xF69521AA, "USAGE: /ac [message]");
new string[128];
if(PlayerInfo[playerid][Level] == 1) format(string, sizeof(string), "(( Moderator %s: %s ))", GetPName(playerid), params);
format(string, sizeof(string), "(( Admin %s: %s ))", GetPName(playerid), params);
foreach(Player, i){
if(PlayerInfo[playerid][Level] < 1) return SendClientMessage(playerid, 0xc3f8fd, string);
}
return 1;
}
CMD:ac(playerid,params[]) { if(PlayerInfo[playerid][Level] < 1) return SendClientMessage(playerid, 0xF69521AA, "You can't use this command!"); if(isnull(params)) return SendClientMessage(playerid, 0xF69521AA, "USAGE: /ac [message]"); new string[128]; if(PlayerInfo[playerid][Level] == 1) format(string, sizeof(string), "(( Moderator %s: %s ))", GetPlayerName(playerid), params); format(string, sizeof(string), "(( Admin %s: %s ))", GetPlayerName(playerid), params); foreach(Player, i){ if(PlayerInfo[playerid][Level] < 1) return SendClientMessage(playerid, 0xc3f8fd, string); return 1; }
https://sampforum.blast.hk/showthread.php?tid=497988
Don't make more than 1 thread for the same error, especially not within a 24 hour time period... EDIT: It was more of a 2 hour time period, to make things worse. |
CMD:ac(playerid,params[])
{
if(PlayerInfo[playerid][Level] < 1) return SendClientMessage(playerid, 0xF69521AA, "You can't use this command!");
if(isnull(params)) return SendClientMessage(playerid, 0xF69521AA, "USAGE: /ac [message]");
new string[128];
if(PlayerInfo[playerid][Level] == 1) format(string, sizeof(string), " Moderator %s: %s", GetPName(playerid), params);
else format(string, sizeof(string), "Admin %s: %s", GetPName(playerid), params);
foreach(Player, i)
{
if(PlayerInfo[i][Level] < 1) continue;
SendClientMessage(i, 0xc3f8fd, string);
}
return 1;
}