SA-MP Forums Archive
All player spawn - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: All player spawn (/showthread.php?tid=379766)



All player spawn - DexXxo - 22.09.2012

Hi guys,
Can you send me the code for that if one goes into a checkpoint all be spawned.

PS: sry for my bad English im german.


Re: All player spawn - N0FeaR - 22.09.2012

Quote:
Originally Posted by DexXxo
Посмотреть сообщение
Hi guys,
Can you send me the code for that if one goes into a checkpoint all be spawned.

PS: sry for my bad English im german.
What do you mean? with spawned?


AW: All player spawn - DexXxo - 22.09.2012

I mean if a player comes to a checkpoint that all players will respawned resist or how the command is to spawn all player?


Re: AW: All player spawn - N0FeaR - 22.09.2012

Quote:
Originally Posted by DexXxo
Посмотреть сообщение
I mean if a player comes to a checkpoint that all players will respawned resist or how the command is to spawn all player?
You mean this? https://sampwiki.blast.hk/wiki/SpawnPlayer


AW: All player spawn - DexXxo - 22.09.2012

Yes but i will spawn all players when i go to the checkpoint.
I donґt will spawn 1 player
I will spawn all players
you can understand?


Re: All player spawn - ThePhenix - 22.09.2012

PHP код:
CMD:spawnall(playerid,params[]) {
    
#pragma unused params
    
if(PlayerInfo[playerid][Level] >= 4) {
        
CMDMessageToAdmins(playerid,"SPAWNAll");
           for(new 
0MAX_PLAYERSi++) {
            if(
IsPlayerConnected(i) && (!= playerid) && != ServerInfo[MaxAdminLevel]) {
                
PlayerPlaySound(i,1057,0.0,0.0,0.0); SetPlayerPos(i0.00.00.0); SpawnPlayer(i);
            }
        }
        new 
string[128]; format(string,sizeof(string),"Administrator \"%s\" has spawned all players"pName(playerid) );
        return 
SendClientMessageToAll(bluestring);
    } else return 
SendClientMessage(playerid,red,"ERROR: You need to be level 4 to use this command");




AW: All player spawn - DexXxo - 22.09.2012

I want that when a player runs into a checkpoint that all players on the server will spawn


Re: All player spawn - ThePhenix - 22.09.2012

I don't understand, їWhat do you mean?


AW: All player spawn - DexXxo - 22.09.2012

Looool even better, you can not explain it


AW: Re: All player spawn - DexXxo - 23.09.2012

Quote:
Originally Posted by ThePhenix
Посмотреть сообщение
PHP код:
CMD:spawnall(playerid,params[]) {
    
#pragma unused params
    
if(PlayerInfo[playerid][Level] >= 4) {
        
CMDMessageToAdmins(playerid,"SPAWNAll");
           for(new 
0MAX_PLAYERSi++) {
            if(
IsPlayerConnected(i) && (!= playerid) && != ServerInfo[MaxAdminLevel]) {
                
PlayerPlaySound(i,1057,0.0,0.0,0.0); SetPlayerPos(i0.00.00.0); SpawnPlayer(i);
            }
        }
        new 
string[128]; format(string,sizeof(string),"Administrator \"%s\" has spawned all players"pName(playerid) );
        return 
SendClientMessageToAll(bluestring);
    } else return 
SendClientMessage(playerid,red,"ERROR: You need to be level 4 to use this command");

that's right but I would without a commanding.