Lil question
#1

How can i make every 10min player gets 100 % health?
Reply
#2

You want all the connected players to recive 100% health ?
Reply
#3

pawn Код:
SetTimer("RehealPlayers", 600*1000, true);
pawn Код:
forward RehealPlayers();
public RehealPlayers()
{
for(new z = 0; z < MAX_PLAYERS; z += 1) { SetPlayerHealth(z, 100.00); }
}
Reply
#4

This under #include <a_samp>

pawn Код:
forward HealAll();
This somewhere in ya script.

pawn Код:
public HealAll()
{
    new playerid;
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i) && (i != playerid)
        {
        SetPlayerHealth(i,100.0);
    }
}
And this under OnPlayerConnect

pawn Код:
SetTimer("HealAll", 10000);
Did not tested. If it does not works.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)