[Pedido] respawn no x1
#1

sitema de respawn no x1 tipo o cara ta no x1 Se ganhar o duelo, ganharб respawn automбtico ele e o outro q estava no x1 com ele ajuda
================================================== =====================================
skype: abdiabr
Reply
#2

pawn Код:
SpawnPlayer(playerid);
Reply
#3

isso e par me colocar no meu cmd de x1?
Reply
#4

Em OnPlayerDeath

pawn Код:
if(TaNoX1[killerid] == 1){
    SendClientMessage(killerid, -1, "vc colocou seu rival pra deitar");
    TanoX1[killerid] = 0;
    SpawnPlayer(killerid);
}

//й sу um codigo de base
Reply
#5

nao entende muito mais vou tenta
Reply
#6

No caso ira dar spawn nois dois jogadores(que estavam x1 obviamente).

pawn Код:
public OnPlayerDeath(playerid, killerid, reason) {

    if (GetPVarInt(playerid, "noX1") != 0 ) {
   
        DeletePVar(playerid, "noX1");
        DeletePVar(killerid, "noX1");
       
        SpawnPlayer(playerid);
        SpawnPlayer(killerid);
       
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)