[Ajuda] Hospital
#1

Quero fazer com que quando o player morra no evento nгo passe pelo hospital .

Isso que define se o player tб no evento ou nгo.
PHP код:
NaPorraDoEvento[playerid] = true
na public OnPlayerDeath tem isso que faz com que quando o player morrer vб ao hospital

PHP код:
Morreu[playerid] = true
e na public OnPlayerSpawn tem isso

PHP код:
if(Morreu[playerid])
    {
        
SetPlayerHealth(playerid5.0);
        new 
randmaca random(sizeof(MacaAposMorrer));
        
SetPlayerPos(playeridMacaAposMorrer[randmaca][0], MacaAposMorrer[randmaca][1], MacaAposMorrer[randmaca][2]);
        
SetPlayerFacingAngle(playeridMacaAposMorrer[randmaca][3]);
        
SetPlayerInterior(playerid1);
        
ClearChatbox(playerid10);
        
ClearAnimations(playerid);
        
ApplyAnimation(playerid"CRACK""crckdeth2"4.010000);
        
SetPlayerCameraPos(playerid1159.3287, -1314.61789282.0693);
        
SetPlayerCameraLookAt(playerid1164.3419, -1305.18959280.5693);
        
GameTextForPlayer(playerid"~r~Voce sera recuperado em alguns segundos~n~Aguarde"270004);
        return 
1;
    } 
Reply


Messages In This Thread
Hospital - by Wendell - 28.09.2013, 10:38
Respuesta: Hospital - by DanDRT - 28.09.2013, 10:42
Re: Respuesta: Hospital - by Wendell - 28.09.2013, 10:48
Respuesta: Hospital - by DanDRT - 28.09.2013, 10:50
Re: Respuesta: Hospital - by Wendell - 28.09.2013, 11:06

Forum Jump:


Users browsing this thread: 1 Guest(s)