0 Members and 1 Guest are viewing this topic.
So how can I set player health?
function SpawnObject(X, Y: single; ObjType: byte): integer;Parameter Info: X (Single): X position that the object will spawn. Y (Single): Y position that the object will spawn. ObjType (Byte): ID of the object to be spawned. See below for details
SpawnObject(GetPlayerStat(ID,'X'),GetPlayerStat(ID,'Y'),16);
Ah, I figure out about ID and spawn object after hour xD but forum was down and I couldn't write it(lobby in soldat was off too)...Script work well, but still it would be better to set player health instead of spawning First Aid Kid, its looks a bit... "bad" when you have full health and you leave behind med kid.