Only for lspd and fbi
#1

Hello!

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

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?
Reply
#3

Add it to the script you are using
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)