Object Health..?
#1

Can We Set Health Of a Object...
Reply
#2

Wait, what? No. However you can check out this: https://sampforum.blast.hk/showthread.php?tid=372478
Check the reply under the first post.
Reply
#3

I Don't Understand
Reply
#4

Use OnPlayerKeyStateChange and detect if the player is holding the KEY_FIRE and detect his weapon to be the chainsaw ID.
example:
pawn Код:
#define HOLDING(%0) \
    ((newkeys & (%0)) == (%0))

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if (HOLDING(KEY_FIRE))
    {
        if(GetPlayerWeapon(playerid) == 9)
        {
            IsPlayerInRangeOfPoint etc etc
        }
    }
    return 1;
}
Reply
#5

Quote:
Originally Posted by Voxel
Посмотреть сообщение
Use OnPlayerKeyStateChange and detect if the player is holding the KEY_FIRE and detect his weapon to be the chainsaw ID.
example:
pawn Код:
#define HOLDING(%0) \
    ((newkeys & (%0)) == (%0))

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if (HOLDING(KEY_FIRE))
    {
        if(GetPlayerWeapon(playerid) == 9)
        {
            IsPlayerInRangeOfPoint etc etc
        }
    }
    return 1;
}
oK thnx this helped me a lot..
Reply
#6

Additionally, use a timer to detect the time when the player is in front of the tree.

SetTimer
Reply
#7

Quote:
Originally Posted by Schocc
Посмотреть сообщение
Additionally, use a timer to detect the time when the player is in front of the tree.

SetTimer
That is a terrible idea, just use dynamic areas and call it a day.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)