13.10.2015, 10:03
Loop through all the players, check if the player is connected or not, then heal. Something like
This is a very basic example, it just heals all the players that are online in-game and anyone can use this command. Ofcourse, you will have to modify the command to make it the way you want it and fit in your server.
PHP код:
CMD:healall(playerid, params[])
{
for (new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
SetPlayerHealth(i, 100.0);
}
}
return 1;
}