SA-MP Forums Archive
Only for lspd and fbi - 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: Only for lspd and fbi (/showthread.php?tid=383879)



Only for lspd and fbi - hejsan123 - 09.10.2012

Hello!

How can i make a command only for LSPD and FBI?


Re: Only for lspd and fbi - hejsan123 - 09.10.2012

Quote:
Originally Posted by ******
Посмотреть сообщение
Since you have provided ZERO information, I'm going to assume you are using y_commands and y_groups (because why wouldn't you?)

pawn Код:
new
    Group:g_groupLSPD,
    Group:g_groupFBI;

YCMD:whatever(playerid, params[], help)
{
}

public OnGameModeInit()
{
    // Set up the groups.
    g_groupLSPD = Group_Create("LSPD");
    g_groupFBI = Group_Create("FBI");
    // Disable the command by default.
    Group_SetGlobalCommand(YCMD:whatever, false);
    // Enable the command for these groups.
    Group_SetCommand(g_groupLSPD, YCMD:whatever, true);
    Group_SetCommand(g_groupFBI, YCMD:whatever, true);
}
Easy!
I want to add that in this filterscript:

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

show me where i can but your in that?


Re: Only for lspd and fbi - zT KiNgKoNg - 09.10.2012

Add it to the script you are using