cmd de admin... -
pawn Код:
if(strcmp(cmd, "/avisar", true) == 0 || strcmp(cmd, "/av", true) == 0)
{
new texto[256],NickName[MAX_PLAYER_NAME],result[256];
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][PlayerAdmin] == 0)
{
SendClientMessage(playerid, COLOR_RED, "Vocк nгo й Administrador!");
return 1;
}
result = strtok(cmdtext, idx);
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_RED, "USE: /av [texto]");
return 1;
}
GetPlayerName(playerid, NickName, MAX_PLAYER_NAME);
SendClientMessageToAll(COLOR_RED, "|| Aviso da Administraзгo ||");
format(texto, sizeof(texto), "Administrador %s: {FF9A00}%s", NickName, result);
SendClientMessageToAll(COLOR_WHITE, texto);
}
return 1;
}