[DUV] quando o cara morre eu uso o OnPlayerDeath?
#1

Tipo eu quero que quando o cara morra ele apareзa no hospital, mas quando logue apareзa no respawn civil

entгo uso o

Onplayerdeath para isso

vlw gente
Reply
#2

Tem no Gm Larp se procurar vc acha ^^
Reply
#3

Quote:
Originally Posted by [H
unter ]
Tem no Gm Larp se procurar vc acha ^^
vlw a ajuda
Reply
#4

nгo sei se й isso que vc quer,pra no respawn civil vocк usa esse exemplo:

new Float:gCopPlayerSpawns)[][]={
{2297.1064,2452.0115,10.8203},
{2297.0452,2468.6743,10.8203},
{-1616.0292,685.1239,7.1875},
{-1593.3595,716.5286,-5.2422},
{2252.0337,2488.9016,10.9908},
{2268.0940,2448.4197,3.5313},
{2282.3975,2424.6375,3.4766}
};

// na sua funcao que faz ele logar

new rand = random(sizeof(gCopPlayerSpawns));
SetPlayerPos(playerid, gCopPlayerSpawns[rand][0], gCopPlayerSpawns[rand][1], gCopPlayerSpawns[rand][2]);
SetPlayerFacingAngle(playerid, 270.0);

agora aqui й para nascer no hospital

// onplayerdeath

SetPlayerPos(playerid,coo_do_hospital);
SetPlayerInterior(playerid,interior_id);
SetTimer("SairDoHospital",6000,1);



forward SairDoHospital();

public SairDoHospital()
{
new playerid;
SetPlayerPos(playerid,onde_voce_quer_que_ele_saia) ;
SetPlayerInterior(playerid,interior_id);
return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)