SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 11/04/2010, 05:38 AM   #1
Keeboo13
Big Clucker
 
Join Date: Jan 2010
Posts: 145
Reputation: 0
Default Help with if(MedicBill[playerid] == 1 && PlayerInfo[playerid][pJailed] == 0 &&

I have a problem player dies when he logs in and when hes in hospital the camera is looking a diffrent way from which i got it heres my code..

Code:
		if(MedicBill[playerid] == 1 && PlayerInfo[playerid][pJailed] == 0 && PlayerPaintballing[playerid] == 0)
		{
			if(FirstSpawn[playerid] != 1)
  			{
				PlayerInfo[playerid][pDeaths] += 1;
				SetPlayerHealth(playerid, 50.0);
				SetPlayerInterior(playerid, 18);
  			PlayerInfo[playerid][pInt] = 18;
  				SetPlayerVirtualWorld(playerid, random(8999));
				PlayerInfo[playerid][pVirWorld] = 1;
				rand = random(sizeof(gMedicSpawns));
				SetPlayerPos(playerid, gMedicSpawns[rand][0], gMedicSpawns[rand][1], gMedicSpawns[rand][2]); // Warp the player
				SetPlayerFacingAngle(playerid, 0);
 				TogglePlayerControllable(playerid, 0);
    		GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~w~You need to rest now ...", 5000, 3);
    		ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
    		SetTimerEx("ReleaseFromHospital", 8000, 0, "d", playerid);
    		PlayerPlaySound(playerid, 1062, 0.0, 0.0, 0.0);
  			return 1;
			}
		}
Keeboo13 is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
easy? PlayerInfo[playerid][pMaterjalidPangas] = +50; hardstop Help Archive 2 31/05/2010 08:59 PM
..::[ PlayerInfo[playerid][VozacBusa] = +0; HELP ]::.. DarkPower Help Archive 12 08/05/2010 10:31 PM
What's wrong with skins? GetPlayerSkin(playerid) & SetPlayerSkin(playerid, skin) McSquizzy Help Archive 7 16/04/2010 02:27 PM
WG40[playerid] = 1; For everyone not only playerid? pawelf94 Help Archive 4 23/12/2009 03:31 PM


All times are GMT. The time now is 06:01 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.