All player spawn
#1

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.
Reply
#2

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?
Reply
#3

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

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
Reply
#5

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?
Reply
#6

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");

Reply
#7

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

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

Looool even better, you can not explain it
Reply
#10

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)