Need help with y_commands in group..
#1

pawn Код:
Group_SetGlobalCommand(YCMD:kill, false);
Group_SetCommand(gGSF, YCMD:kill, true);

GROUP_ADD<gGSF>
{
      @YCMD:kill;
}

YCMD:kill(playerid, params[], help)
{
    Group_GetPlayer(gSBF, playerid);
    SetPlayerHealth(playerid, 0.0);
    return 1;
}
So I have 21 group.

The problem is on 1st group command isn't working on all otheres it's working, but what I wanted is to work only on group gSBF.

Maybe Someone will help me out!

Thank you for your time.

Respectfully Scrillex!
Reply
#2

pawn Код:
GROUP_ADD<gGSF>
    {
        @YCMD:kill;
    }
YCMD:kill(playerid, params[], help)
{
    SetPlayerHealth(playerid, 0.0);
    return 1;
}
It' still works like that!

Btw when I spawn it shows first groups Gametext.. I don't know why.

This is the orginal post!

https://sampforum.blast.hk/showthread.php?tid=413862

Thanks again for your time.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)