[Ajuda] PLayers on - 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] PLayers on (
/showthread.php?tid=636618)
PLayers on -
Jorgeeee - 01.07.2017
Fiz um textdraw e quero por para pegar os players on e mostrar como faзo esse looping dos players on?
Re: PLayers on -
IlanZ - 01.07.2017
PHP код:
new online;
for(new i; i < MAX_PLAYERS+1; i++)
{
if(IsPlayerConnected(i))
{
online++;
}
}
Re: PLayers on -
Jorgeeee - 01.07.2017
Quote:
Originally Posted by IlanZ
PHP код:
new online;
for(new i; i < MAX_PLAYERS+1; i++)
{
if(IsPlayerConnected(i))
{
online++;
}
}
|
e pra vincular com a textdraw?
Re: PLayers on -
HardWar - 01.07.2017
Use TextDrawShowForAll
PHP код:
new Text:textid = TextDrawCreate(100.0, 100.0, "Texto");
TextDrawShowForAll(textid);
Re: PLayers on -
IlanZ - 01.07.2017
TextDrawSetString, tem na wiki.