26.06.2014, 07:37
pawn Код:
CMD:healall(playerid, params[]) //Create a command (you need ZCMD/y_commands to do this thing)
{
for(new i = 0; i < GetMaxPlayers(); i++) //Looping to all players
{
if(IsPlayerConnected(i)) //Check if player are connected
{
SetPlayerHealth(i, 100); //Set player health to 100
}
}
return 1;
}

