29.08.2014, 14:11
eu tenho o /cnn
eu gostaria de por para todos do server ver.
pawn Код:
CMD:cnn(playerid, params[])
{
if(PlayerInfo[playerid][pAdministrador] < 1 && PlayerInfo[playerid][pMonitor] < 1 && PlayerInfo[playerid][pFederacao] < 1) return SendClientMessage(playerid,COLOR_RED,"Erro: Vocк nгo tem permissгo para usar este comando.");
new texto[256];
if(sscanf(params,"s",texto)) return SendClientMessage(playerid, COR_USOCORRETO, "Uso correto: /cnn [texto]");
new string[128];
format(string, sizeof(string), "~b~%s: ~w~%s",Nome(playerid),texto);
for(new i = 0; i < MAX_PLAYERS; i++)
if(GetDistanceBetweenPlayers(playerid, i) <= 50)
{
GameTextForPlayer(i, string, 5000, 5);
}
return 1;
}