Posts: 31
Threads: 6
Joined: Nov 2014
Reputation:
0
I have been trying to do this for like the last week or so. I make it fully working but it doesn't work in game. So I am looking for a new approach. At this point I am okay with downloading a script done already. So basically what I want to do is, when a player is shot or damaged to a certain extent ( lets say they get shot now they are at 30 hp) they will fall on the floor and perform an animation ( crack or parachute something that looks real ) and now they lie there till killed or revived. My rp has been released and I need this quick but its hard for me to make. So I am looking to you guys to help me do it.
Posts: 31
Threads: 6
Joined: Nov 2014
Reputation:
0
Already tried this it doesn't work for me.
Posts: 109
Threads: 19
Joined: Feb 2015
Reputation:
0
If you want to make an exceptional death system, then do what Golimad has stated, with the addition of 'Create3DTextLabel'. Attach a 3DTextLabel to the body of the dead person, in which will state that they are certainly dead. You will also need to script in a timer in which states the time that the player in death mode will be able to /accept death, or whatever you are planning on doing. It is not that hard if you research it all.
Posts: 31
Threads: 6
Joined: Nov 2014
Reputation:
0
I am not saying I need you to script for me I already have an rp server fully scripted, all I need to know is why it says, "error 025: function heading differs from prototype" on this line, "public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart)"
Posts: 31
Threads: 6
Joined: Nov 2014
Reputation:
0
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart)
{
new Float:health;
GetPlayerHealth(playerid,health);
if (health < 10.0)
{
SetPlayerDrunkLevel(playerid, 5000);
ApplyAnimation(playerid, "PED", "Sweet_injuredloop", 4.1, 1, 1, 1, 1, 1, 1);
}
return 1;
}
That is everything and it ways the error on the first line aka line 22
Posts: 31
Threads: 6
Joined: Nov 2014
Reputation:
0
Nevermind fixed it my self.
Posts: 56
Threads: 14
Joined: Dec 2014
Reputation:
0
If you can script this and then send me the script please i`m new to scripting i know how to edit stuff not to script