[BUG]RPG SERVER - SPAWN ERROR
#1

I have a GM-based FR RPG LARP, but I have a bug when I'm loggued and spawn in the hospital and then tell me: You Are Wounded! , $ 100 after he rob me of my money, and is repeated several times!

PLZ Help me
The SCREENS :

http://www.hebergementimages.com/image-7f16b5d05f1e4d4b57de9bb4e440c9d1_Sans-titre-2.jpg.html"][/URL]

http://www.hebergementimages.com/image-cfe46e3c766fbb8b6daba32aff0cbe36_Sans-titre-3.jpg.html"][/URL]

Code :

Код:
}
		if(MedicBill[playerid] == 1 && PlayerInfo[playerid][pJailed] == 0 && PlayerPaintballing[playerid] == 0)
		{
		 // new string[256];
		 // new cut = deathcost;
		 new cut = PlayerInfo[playerid][pLevel]*deathcost;
			GivePlayerMoney(playerid, -cut);
			/*format(string, sizeof(string), "Hopital: Les medecins vous ont soignй de justesse, vous devez payer : $%d.", cut);
			SendClientMessage(playerid, TEAM_CYAN_COLOR, string);
			MedicBill[playerid] = 0;
			MedicTime[playerid] = 0;
			NeedMedicTime[playerid] = 0;*/
			PlayerInfo[playerid][pDeaths] += 1;
			SetPlayerHealth(playerid, 100);
		 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);
	  TogglePlayerControllable(playerid, 0);
	  GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~y~Vous кtes ~r~blaisse~y~...", 35000, 3);
	  MedicTime[playerid] = 1;
	  if(PlayerInfo[playerid][pDonateRank] > 0)
	  {
	   NeedMedicTime[playerid] = 1;
	  }
	  else
	  {
	  	NeedMedicTime[playerid] = 5;
			}
	  PlayerPlaySound(playerid, 1062, 0.0, 0.0, 0.0);
		 return 1;
		}
Other Code :

Код:
		 }
 			if(MedicTime[i] > 0)
			{
			 if(MedicTime[i] == 3)
			 {
			  SetPlayerInterior(i, 3);
			  PlayerInfo[i][pInt] = 3;
			  new Float:X, Float:Y, Float:Z;
			  GetPlayerPos(i, X,Y,Z);
			  SetPlayerCameraPos(i, X - 3, Y, Z);
			  SetPlayerCameraLookAt(i,X,Y,Z);
			 }
			 MedicTime[i] ++;
			 if(MedicTime[i] >= NeedMedicTime[i])
			 {
					new cut = deathcost; //PlayerInfo[playerid][pLevel]*deathcost;
					//SafeGivePlayerMoney(i, -cut);
					format(string, sizeof(string), "Docteur : Votre facture de maladie coыte $%d, Bonne journйe.", cut);
					SendClientMessage(i, TEAM_CYAN_COLOR, string);
					TogglePlayerControllable(i, 1);
			  MedicBill[i] = 0;
			  MedicTime[i] = 0;
			  NeedMedicTime[i] = 0;
			  PlayerInfo[i][pDeaths] += 1;
			  PlayerFixRadio(i);
			  ClearAnimations(i);
			  SpawnPlayer(i);
			 }
PLLLZ help me

++
Col-Boy__AyMeN
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)