29.08.2012, 03:42
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:
+rep to anyone that can help
Also, +rep if anyone can help me out on this thread: click here
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; }
Also, +rep if anyone can help me out on this thread: click here