Bren
Умник
Сама функция
В filterscripts работает а в моде нет
Если надо могу скинуть include <Selection>
В filterscripts работает а в моде нет
Если надо могу скинуть include <Selection>
PHP:
#include <Selection>
#define Weapons 100
new Menu = mS_INVALID_LISTID;
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/menu", true) == 0)
{
ShowModelSelectionMenu(playerid, MenuHuman, "Gun Shop");
return 1;
}
return 0;
}
public OnFilterScriptInit()
{
Menu = LoadModelSelectionMenu("Selection/MenuWeapons.txt");
return 1;
}
public OnPlayerModelSelection(playerid, response, listid, modelid)
{
if(listid == Menu)
{
if(response)
{
switch(modelid)
{
case 331: GivePlayerWeapon(playerid, 1, Weapons);
case 333: GivePlayerWeapon(playerid, 2, Weapons);
case 334: GivePlayerWeapon(playerid, 3, Weapons);
case 335: GivePlayerWeapon(playerid, 4, Weapons);
case 336: GivePlayerWeapon(playerid, 5, Weapons);
case 337: GivePlayerWeapon(playerid, 6, Weapons);
case 338: GivePlayerWeapon(playerid, 7, Weapons);
case 339: GivePlayerWeapon(playerid, 8, Weapons);
case 341: GivePlayerWeapon(playerid, 9, Weapons);
case 321: GivePlayerWeapon(playerid, 10, Weapons);
case 325: GivePlayerWeapon(playerid, 14, Weapons);
case 326: GivePlayerWeapon(playerid, 15, Weapons);
case 342: GivePlayerWeapon(playerid, 16, Weapons);
case 343: GivePlayerWeapon(playerid, 17, Weapons);
case 344: GivePlayerWeapon(playerid, 18, Weapons);
case 346: GivePlayerWeapon(playerid, 22, Weapons);
case 347: GivePlayerWeapon(playerid, 23, Weapons);
case 348: GivePlayerWeapon(playerid, 24, Weapons);
case 349: GivePlayerWeapon(playerid, 25, Weapons);
case 350: GivePlayerWeapon(playerid, 26, Weapons);
case 351: GivePlayerWeapon(playerid, 27, Weapons);
case 352: GivePlayerWeapon(playerid, 28, Weapons);
case 353: GivePlayerWeapon(playerid, 29, Weapons);
case 355: GivePlayerWeapon(playerid, 30, Weapons);
case 356: GivePlayerWeapon(playerid, 31, Weapons);
case 372: GivePlayerWeapon(playerid, 32, Weapons);
case 357: GivePlayerWeapon(playerid, 33, Weapons);
case 358: GivePlayerWeapon(playerid, 34, Weapons);
case 359: GivePlayerWeapon(playerid, 35, Weapons);
case 360: GivePlayerWeapon(playerid, 36, Weapons);
case 361: GivePlayerWeapon(playerid, 37, Weapons);
case 362: GivePlayerWeapon(playerid, 38, Weapons);
case 363: GivePlayerWeapon(playerid, 39, Weapons);
case 365: GivePlayerWeapon(playerid, 41, Weapons);
case 366: GivePlayerWeapon(playerid, 42, Weapons);
}
}
}
return 1;
}
Последнее редактирование:
