how to - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: how to (
/showthread.php?tid=136893)
how to -
02manchestera - 27.03.2010
I want to make a if satment but dont no how to do this is my try but total wrong.
if health < 1 (Getplayerid);
{
death
return1;
}
SO if there health goes below 1 they died i am hoping this will sort out some death bugs i have.
Re: how to -
Tenshi - 27.03.2010
You have the
death bug? Do this fix:
PLEASE UNDER THIS:
Код:
public OnPlayerDeath(playerid, killerid, reason)
{
ClearAnimations(playerid);
SetPlayerHealth(playerid, 1.0);
// ... rest of the code
Quote:
notes: sometimes a rare death in vehicles will cause this problem also.
|
Re: how to -
02manchestera - 27.03.2010
It has def helped but is der a way to make the clear amination in a timer so it happens after like 5 seconds
Re: how to -
Tenshi - 27.03.2010
Quote:
Originally Posted by MR Loose Brackets
It has def helped but is der a way to make the clear amination in a timer so it happens after like 5 seconds
|
Quote:
Originally Posted by Tenshi ™
ClearAnimations(playerid); // REMOVE THIS THEN
SetPlayerHealth(playerid, 1.0);
|
Re: how to -
02manchestera - 27.03.2010
THanks for your help works fine now