one question (cmd for all)
#2

Loop through all the players, check if the player is connected or not, then heal. Something like

PHP код:
CMD:healall(playeridparams[])
{
    for (new 
0MAX_PLAYERSi++)
    {
        if (
IsPlayerConnected(i))
        {
            
SetPlayerHealth(i100.0);
        }
    }
    return 
1;

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


Messages In This Thread
one question (cmd for all) - by xTURBOx - 13.10.2015, 09:53
Re: one question (cmd for all) - by Sjn - 13.10.2015, 10:03
Re: one question (cmd for all) - by bgedition - 13.10.2015, 10:04
Re: one question (cmd for all) - by Logic_ - 13.10.2015, 10:16
Re: one question (cmd for all) - by HydraHumza - 13.10.2015, 10:27
Re: one question (cmd for all) - by Logic_ - 13.10.2015, 10:33
Re: one question (cmd for all) - by Sjn - 13.10.2015, 11:13
Re: one question (cmd for all) - by xTURBOx - 13.10.2015, 11:17

Forum Jump:


Users browsing this thread: 2 Guest(s)