[Help] Deathmode
#1

When people got killed i want them to be on deathmode. So they got timer and the medics or other players can bring the player to the hospital.

When they got killed now, they just respawn back to the place and can walk around. Someone can help me with this?
Thank you.

Quote:

public SetPlayerSpawn(playerid)
{
new string[128], rand;
if(IsPlayerConnected(playerid))
{
if(!IsPlayerNPC(playerid))
{
if(MedicBill[playerid] == 1 && PlayerInfo[playerid][pJailed] == 0)
{
if(PlayerInfo[playerid][pAdminDuty] == 1) return 1;
if(FirstSpawn[playerid] != 1)
{
SetRealMoney(playerid, ScriptMoney[playerid]);
PlayerInfo[playerid][pDeaths] += 1;
SetPlayerHealth(playerid, 10.0);
// Deathmode
SetPlayerFacingAngle(playerid, 0);
TogglePlayerControllable(playerid, 1);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~w~You are heavy wounded ...", 5000, 3);
ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);

Reply


Messages In This Thread
[Help] Deathmode - by refetto - 18.01.2011, 13:05
Re: [Help] Deathmode - by refetto - 18.01.2011, 13:40

Forum Jump:


Users browsing this thread: 1 Guest(s)