[Help] Death at login
#1

Hey guys, it seams everytime I log in I get a death message, I tryed to script in a hospital, it worked accept everytime I logged in I spawned in it, I used the LARP code for the hospital. Can someone please help me:

Код:
		if(MedicBill[playerid] == 1 && PlayerInfo[playerid][pJailed] == 0 && PlayerPaintballing[playerid] == 0)
		{
		  /*new string[256];
		  new cut = deathcost; //PlayerInfo[playerid][pLevel]*deathcost;
			GivePlayerMoney(playerid, -cut);
			format(string, sizeof(string), "DOC: Your Medical Bill comes to $%d, Have a nice day.", cut);
			SendClientMessage(playerid, TEAM_CYAN_COLOR, string);
			MedicBill[playerid] = 0;
			MedicTime[playerid] = 0;
			NeedMedicTime[playerid] = 0;*/
			PlayerInfo[playerid][pDeaths] += 1;
			SetPlayerHealth(playerid, 100.0);
		  SetPlayerInterior(playerid, 5);
	    rand = random(sizeof(gMedicSpawns));
			SetPlayerPos(playerid, gMedicSpawns[rand][0], gMedicSpawns[rand][1], gMedicSpawns[rand][2]); // Warp the player
			SetPlayerFacingAngle(playerid, 270.0);
 			ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
	    TogglePlayerControllable(playerid, 0);
	    MedicTime[playerid] = 1;
	    if(PlayerInfo[playerid][pDonateRank] > 0)
	    {
	      NeedMedicTime[playerid] = 30;
	    }
	    else
	    {
	    	NeedMedicTime[playerid] = 40;
			}
		  return 1;
		}
Reply


Messages In This Thread
[Help] Death at login - by Oi! - 16.12.2009, 03:29
Re: [Help] Death at login - by marharth - 16.12.2009, 09:47

Forum Jump:


Users browsing this thread: 1 Guest(s)