31.08.2009, 14:12
pawn Код:
//==== TOP OF SCRIPT
new Menu:shop
//==== OnGameModeInit(OnFilerScriptInit)
shop = CreateMenu("Weapon Shop", 2, 50.0, 180.0, 200.0, 200.0);
AddMenuItem(Shop, 0, "AK-47 - 2000$");
//========== OnPlayerSelectetedMenuRow
new Menu:current;
current = GetPlayerMenu(playerid);
if(current == shop)
{
switch(row)
{
case 0:
{
GivePlayerWeapon(playerid, 30, 1000);
GivePlayerMoney(playerid, -2000);
}
}
}
return 1;
}