[Pedido] respawn no x1 - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Pedido] respawn no x1 (
/showthread.php?tid=492011)
respawn no x1 -
xXCallXX - 02.02.2014
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
Re: respawn no x1 -
Delete_ - 02.02.2014
Re: respawn no x1 -
xXCallXX - 02.02.2014
isso e par me colocar no meu cmd de x1?
Re: respawn no x1 -
Delete_ - 02.02.2014
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
Re: respawn no x1 -
xXCallXX - 02.02.2014
nao entende muito mais vou tenta
Re: respawn no x1 -
Gii - 02.02.2014
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;
}