Script Help [CMD]
#2

pawn Код:
if (strcmp("/weapon", cmdtext, true, 10) == 0)
{
    if(GetPlayerInterior(playerid) == 4)
    {
        new string[368];
        strcat(string,"Explosives                                   [$500]");
        strcat(string,"Hand Guns                                    [$1,000]\n");
        strcat(string,"Shotguns                                       [$5,000]\n");
        strcat(string,"Assault Weapons                          [$8,000]\n");
        strcat(string,"Rifles                                              [$12,000]\n");
        ShowPlayerDialog(playerid, DIALOG_WEAPONS, DIALOG_STYLE_LIST, "Weapons:",string,"Select","Back");
        return 1;
    }
    else return SendClientMessage(playerid,COLOR,"You need to be in Ammunation!");
}
Not tested, but i think it work. And here you can get interior ids http://weedarr.wikidot.com/interior
Reply


Messages In This Thread
Script Help [CMD] - by Tidzii - 12.06.2014, 14:05
Re: Script Help [CMD] - by finelaq - 12.06.2014, 14:19
Re: Script Help [CMD] - by iFiras - 12.06.2014, 14:22
Re: Script Help [CMD] - by Tidzii - 12.06.2014, 15:02
Re: Script Help [CMD] - by Tidzii - 12.06.2014, 15:09
Re: Script Help [CMD] - by Laure - 12.06.2014, 15:14
Re: Script Help [CMD] - by iFiras - 12.06.2014, 21:42
Re: Script Help [CMD] - by Tidzii - 12.06.2014, 21:48

Forum Jump:


Users browsing this thread: 3 Guest(s)