How to SetPlayerPos for all the players?
#10

Yeah. I noticed one more thing which I typed wrong
PHP код:
public OnPlayerCommandText(playeridcmdtext[]) 

    if (!
strcmp("/bringall"cmdtexttrue)) 
    { 
        new 
Float:Pos[3],pName[24],string[128]; 
        
GetPlayerPos(playerid,Pos[0],Pos[1],Pos[2]); 
        
GetPlayerName(playerid,pName,sizeof(pName)); 
        
format(string,128,"%s(%d) has brought everyone to his position!",pName,playerid); 
        
SendClientMessageToAll(0xFF0000FF,string); 
        for(new 
i=0;i<MAX_PLAYERS;i++) 
        if(
IsPlayerConnected(i)) 
        { 
            
SetPlayerPos(i,Pos[0],Pos[1],Pos[2]); 
             
        } 
        return 
1
    } 
    return 
0

It's good now
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)