how to
#1

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.
Reply
#2

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.

Reply
#3

It has def helped but is der a way to make the clear amination in a timer so it happens after like 5 seconds
Reply
#4

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);
Reply
#5

THanks for your help works fine now
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)