Quote:
Originally Posted by Lucas_Henrique
Adpta ese chat de admin ai, criei aqui rapdinho..
pawn Код:
if(text[0] == '!' && playerinfo[playerid][Admin] >= 1) //EDITA A VAR DE ADMIN.. { new string[128],nomea[24]; GetPlayerName(playerid,nomea,MAX_PLAYER_NAME); format(string,sizeof(string),"(Chat Admin): %s [%d]: %s",Nome(playerid),playerid,text[1]); SendAdminMessage(CORAQUI,string); return 0; } stock SendAdminMessage(cor,string[]) { for(new d; d < GetMaxPlayers(); ++d) { if(IsPlayerConnected(d) && playerinfo[d][Admin] > 1) //EDITA A VAR DE ADMIN.. { SendClientMessage(d,cor,string); } } }
|
Vйi na boa apaga isso todo mal identado ¬¬'