SetPlayerPos wont set my position +rep
#1

Okay, so I have a death system, pretty basic


and no errors or warning, I have made the pDead a new thing, it gives me the client messages and - the cash, but it doesnt set my position, it sets it to the field in blueberry

code(under on playerspawn:
Код:
    if(pDead[playerid] == 1)
	{
	if(PlayerInfo[playerid][pInsurance] == 1)
	{
    SetPlayerPos(playerid, 1179.0568,-1324.3087,14.1506);
    SCM(playerid, COLOR_LIGHTRED, "It seem's you passed out and ended up at the hospital!");
    SCM(playerid, COLOR_LIGHTRED, "You have lost 30 minutes of your memory! ");
    SCM(playerid, COLOR_LIGHTRED, "You were charged $750 for your medical and hospital fees.");
    SetPlayerHealth(playerid, 100);
    GivePlayerCash(playerid, -750);
    pDead[playerid] = 0;
  	}
 	if(PlayerInfo[playerid][pInsurance] == 0)
	{
    SetPlayerPos(playerid, 1179.0568,-1324.3087,14.1506);
    SCM(playerid, COLOR_LIGHTRED, "It seem's you passed out and ended up at the hospital!");
    SCM(playerid, COLOR_LIGHTRED, "You have lost 30 minutes of your memory! ");
    SCM(playerid, COLOR_LIGHTRED, "You were charged $2000 for your medical and hospital fees.");
    SCM(playerid, COLOR_YELLOW, "NOTE: You can buy insurance outside the hospital for $2500!");
    GivePlayerCash(playerid, -2000);
    SetPlayerHealth(playerid, 50);
    pDead[playerid] = 0;
  	}
+rep to anyone that can help

Also, +rep if anyone can help me out on this thread: click here
Reply


Messages In This Thread
SetPlayerPos wont set my position +rep - by RLGaming - 29.08.2012, 03:42
Re: SetPlayerPos wont set my position +rep - by iGetty - 29.08.2012, 04:29
Re: SetPlayerPos wont set my position +rep - by RLGaming - 29.08.2012, 13:05
Re: SetPlayerPos wont set my position +rep - by clarencecuzz - 29.08.2012, 13:09
Re: SetPlayerPos wont set my position +rep - by detter - 29.08.2012, 13:15
Re: SetPlayerPos wont set my position +rep - by clarencecuzz - 29.08.2012, 13:17
Re: SetPlayerPos wont set my position +rep - by detter - 29.08.2012, 13:22
Re: SetPlayerPos wont set my position +rep - by clarencecuzz - 29.08.2012, 13:24
Re: SetPlayerPos wont set my position +rep - by detter - 29.08.2012, 13:30
Re: SetPlayerPos wont set my position +rep - by RLGaming - 29.08.2012, 13:33

Forum Jump:


Users browsing this thread: 1 Guest(s)