[Ajuda]Hospital Bugado
#10

Код:
public SetMorto(playerid)
{
	if(GetPVarInt(playerid, "Morto") != 2) return 0;
	if(GetPVarInt(playerid, "Hospital")) return 0;
    if(Player[playerid][pJailed] == 0)
	{
	    SetPVarInt(playerid, "Hospital", 1);
		NoHospital[playerid] = 30;
        SetPlayerFacingAngle(playerid, 90);

        new rand = random(sizeof(MacaSpawns));
  	    SafeSetPlayerPos(playerid, MacaSpawns[rand][0], MacaSpawns[rand][1], MacaSpawns[rand][2]);
		ApplyAnimation(playerid,"CRACK", "crckdeth2", 4.0, 1, 1, 1, 0, 45000);
		SetPlayerCameraPos(playerid, MacaSpawns[rand][0]+3, MacaSpawns[rand][1]-5, MacaSpawns[rand][2]+3);
		SetPlayerCameraLookAt(playerid, MacaSpawns[rand][0], MacaSpawns[rand][1], MacaSpawns[rand][2]);

		if(Player[playerid][pPlano])
		{
            SendClientMessage(playerid, 0xFF9680FF, "[MЙDICO] Vocк estava ferido e foi levado ao hospital. Custo pago pelo plano de saъde.");
		}
		else
		{
            SendClientMessage(playerid, 0xFF9680FF, "[MЙDICO] Vocк estava ferido e foi levado ao hospital. Os custos ficaram em R$500,00");
		    GivePlayerGP(playerid,-500);
		}
	}
	DeletePVar(playerid, "Morto");
    return 1;
}
Reply


Messages In This Thread
[Ajuda]Hospital Bugado - by Biieell - 28.06.2012, 23:51
Re: [Ajuda]Hospital Bugado - by humildadeforever - 28.06.2012, 23:54
Re: [Ajuda]Hospital Bugado - by Biieell - 28.06.2012, 23:54
Re: [Ajuda]Hospital Bugado - by humildadeforever - 28.06.2012, 23:57
Re: [Ajuda]Hospital Bugado - by Biieell - 28.06.2012, 23:59
Re: [Ajuda]Hospital Bugado - by humildadeforever - 29.06.2012, 00:00
Re: [Ajuda]Hospital Bugado - by Biieell - 29.06.2012, 00:02
Re: [Ajuda]Hospital Bugado - by Biieell - 29.06.2012, 00:05
Re: [Ajuda]Hospital Bugado - by paulor - 29.06.2012, 00:21
Re: [Ajuda]Hospital Bugado - by Biieell - 29.06.2012, 00:22

Forum Jump:


Users browsing this thread: 1 Guest(s)