04.01.2014, 02:03
So hello everyone I'm trying to short our y_group cmds..
So basically this code goes under GameModeInt but the problem is I need to make for single group.. Maybe there is possibility to make it one line for all...
Here is my code:
CODE:
WARNINGS:
And here is full lines without warnings andstuff:
With best regards Scrillex
So basically this code goes under GameModeInt but the problem is I need to make for single group.. Maybe there is possibility to make it one line for all...
Here is my code:
CODE:
pawn Код:
Group_SetCommand(gHoodRats || gGantonGSF || gSDSGSF || gSDSGSF || gTempleGSF || VCGSF || SMBGSF || FYB || Mafia || NangBoys || Triads || Vagos || Rifa || Varios || TDB || KTB || RHB, YCMD:giverespect, true);
GROUP_ADD<gHoodRats || gGantonGSF || gSDSGSF || gSDSGSF || gTempleGSF || VCGSF || SMBGSF || FYB || Mafia || NangBoys || Triads || Vagos || Rifa || Varios || TDB || KTB || RHB>
WARNINGS:
pawn Код:
warning 213: tag mismatch
warning 213: tag mismatch
warning 213: tag mismatch
pawn Код:
Group_SetGlobalCommand(YCMD:giverespect, false);
Group_SetCommand(gHoodRats, YCMD:giverespect, true);
Group_SetCommand(gGantonGSF, YCMD:giverespect, true);
Group_SetCommand(gSDSGSF, YCMD:giverespect, true);
Group_SetCommand(gSDSGSF, YCMD:giverespect, true);
Group_SetCommand(gTempleGSF, YCMD:giverespect, true);
Group_SetCommand(VCGSF, YCMD:giverespect, true);
Group_SetCommand(SMBGSF, YCMD:giverespect, true);
Group_SetCommand(FYB, YCMD:giverespect, true);
Group_SetCommand(Mafia, YCMD:giverespect, true);
Group_SetCommand(NangBoys, YCMD:giverespect, true);
Group_SetCommand(Triads, YCMD:giverespect, true);
Group_SetCommand(Vagos, YCMD:giverespect, true);
Group_SetCommand(Rifa, YCMD:giverespect, true);
Group_SetCommand(Varios, YCMD:giverespect, true);
Group_SetCommand(TDB, YCMD:giverespect, true);
Group_SetCommand(KTB, YCMD:giverespect, true);
Group_SetCommand(RHB, YCMD:giverespect, true);
GROUP_ADD<gGantonGSF>
{
Command_Touch(YCMD:giverespect);
}
GROUP_ADD<gSDSGSF>
{
Command_Touch(YCMD:giverespect);
}
GROUP_ADD<gSDSGSF>
{
Command_Touch(YCMD:giverespect);
}
GROUP_ADD<gTempleGSF>
{
Command_Touch(YCMD:giverespect);
}
GROUP_ADD<VCGSF>
{
Command_Touch(YCMD:giverespect);
}
GROUP_ADD<SMBGSF>
{
Command_Touch(YCMD:giverespect);
}
GROUP_ADD<FYB>
{
Command_Touch(YCMD:giverespect);
}
GROUP_ADD<Mafia>
{
Command_Touch(YCMD:giverespect);
}
GROUP_ADD<NangBoys>
{
Command_Touch(YCMD:giverespect);
}
GROUP_ADD<Triads>
{
Command_Touch(YCMD:giverespect);
}
GROUP_ADD<Vagos>
{
Command_Touch(YCMD:giverespect);
}
GROUP_ADD<Rifa>
{
Command_Touch(YCMD:giverespect);
}
GROUP_ADD<Varios>
{
Command_Touch(YCMD:giverespect);
}
GROUP_ADD<TDB>
{
Command_Touch(YCMD:giverespect);
}
GROUP_ADD<KTB>
{
Command_Touch(YCMD:giverespect);
}
GROUP_ADD<RHB>
{
Command_Touch(YCMD:giverespect);
}
GROUP_ADD<gHoodRats>
{
Command_Touch(YCMD:giverespect);
}
![Wink](images/smilies/wink.png)