[Ajuda] Como faзo isso - 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] Como faзo isso (
/showthread.php?tid=382071)
Como faзo isso -
darkturque - 01.10.2012
Bom galera eu Tenho Fs que apareзe procurado em sima da Pessoa em Vermelho Mais qeria que aparecese o Nivel de Procurado Tbm tipo: Procurado[6]
Quem puder ajudar Obrigado.
pawn Code:
#include <a_samp>
forward Procurado();
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" FS BY : Eu");
print("--------------------------------------\n");
return 1;
}
public OnGameModeInit()
{
SetTimer("Procurado", 1000, true);
return 1;
}
public Procurado()
{
for(new x=0; x < MAX_PLAYERS; x++)
{
if(IsPlayerConnected(x) && GetPlayerWantedLevel(x) > 1)
{
SetPlayerChatBubble(x, "Procurado", 0xFF0000AA, 100.0, 10000);
}
}
}
Re: Como faзo isso -
tonisantolia - 01.10.2012
pawn Code:
public Procurado()
{
new str[128];
for(new x=0; x < MAX_PLAYERS; x++)
{
if(IsPlayerConnected(x) && GetPlayerWantedLevel(x) > 1)
{
format(str,sizeof(str),"Procurado[%d]",GetPlayerWantedLevel(x));
SetPlayerChatBubble(x, str, 0xFF0000AA, 100.0, 10000);
}
}
}