[FilterScript] TPGun
#13

pawn Код:
COMMAND:menu(playerid, params[])
    if(playerDB[playerid][admin] || playerDB[playerid][vip]) // If player is admin or VIP.
    {
        ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "What do you want?", "Gun Shop \nVehicles Shop \nTeleport Destinations", "Buy", "Cancel");
        return 1;
    }
    else
    {
        SendClientMessage(playerid, COLOR_INFO, "You must be administrator or VIP to use this command!");
        return 1;
    }
That might work.. But, you will need to implement the FS in your gamemode... So if you use the "basic" system command in your gamemode, you will need to replace the command by this:

pawn Код:
if(!strcmp("/menu", cmdtext, true))
{  
    if(playerDB[playerid][admin] || playerDB[playerid][vip]) // If player is admin or VIP.
    {
        ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "What do you want?", "Gun Shop \nVehicles Shop \nTeleport Destinations", "Buy", "Cancel");
    }
    else
    {
        SendClientMessage(playerid, COLOR_INFO, "You must be administrator or VIP to use this command!");
    }
    return 1;
}
Reply


Messages In This Thread
TPGun - by Sreadon - 12.07.2011, 14:22
Re: TPGun - by BizzyD - 12.07.2011, 14:29
Re : TPGun - by Sreadon - 12.07.2011, 14:34
Re: TPGun - by soulas85 - 14.07.2011, 11:38
Re : TPGun - by Sreadon - 14.07.2011, 13:09
Re: TPGun - by soulas85 - 14.07.2011, 13:32
AW: TPGun - by Forbidden - 14.07.2011, 13:36
Re: TPGun - by ricardo178 - 14.07.2011, 13:41
AW: TPGun - by Forbidden - 14.07.2011, 13:51
Re: TPGun - by soulas85 - 14.07.2011, 13:57
Re : TPGun - by Sreadon - 14.07.2011, 14:23
Re: TPGun - by soulas85 - 14.07.2011, 14:25
Re : TPGun - by Sreadon - 14.07.2011, 14:43

Forum Jump:


Users browsing this thread: 1 Guest(s)