[Ajuda] ajuda /cnn - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] ajuda /cnn (
/showthread.php?tid=534365)
ajuda /cnn -
LE4NDrO - 29.08.2014
eu tenho o /cnn
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;
}
eu gostaria de por para todos do server ver.
Re: ajuda /cnn -
ViniBorn - 29.08.2014
GameTextForPlayer > GameTextForAll
O loop nгo й necessбrio
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[128];
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);
GameTextForAll(string, 5000, 5);
return 1;
}
Re: ajuda /cnn -
SeV_ - 29.08.2014
https://sampwiki.blast.hk/wiki/GameTextForAll
pawn Код:
CMD:cnn(playerid, params[])
{
new Texto[ 128 ], string [ 129 ];
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.");
if(sscanf(params,"s",texto)) return SendClientMessage(playerid, COR_USOCORRETO, "Uso correto: /cnn [texto]");
format(string, sizeof(string), "~b~%s: ~w~%s",Nome(playerid),texto);
GameTextForAll(string, 5000, 5);
return 1;
}
Re: ajuda /cnn -
LE4NDrO - 29.08.2014
vlw Vini +rep pra vocк