Need help with y_commands in group.. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Need help with y_commands in group.. (
/showthread.php?tid=413895)
Need help with y_commands in group.. -
Scrillex - 07.02.2013
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!
Re: Need help with y_commands in group.. -
Scrillex - 07.02.2013
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.