[Ajuda] Como executar um comando em todos os jogadores
#1

O Titulo ja diz tudo haha, obrigado a quem ajudar!
Reply
#2

Utilizando o foreach:

pawn Code:
foreach(new i : Player) { // Comando a executar. }
Reply
#3

Com o uso de loop.
Reply
#4

PHP Code:
CMD:todos(playerid)
{
    for(new 
0GetPlayerPoolSize(); <= ji++)
    {
        
SendClientMessage(i, -1"Olб.");
    }
    
/*
    foreach(new i : Player)//se usar foreach
    {
        SendClientMessage(i, -1, "Olб.");
    }*/
    
return 1;

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)