Menu Problem
#3

Here you are:
Код:
if(weapon == sexshop)
{
switch(row)
{
case 0:
{
if(GetPlayerMoney(playerid) >= 1500)
{
GivePlayerMoney(playerid, -1500);
GivePlayerWeapon(playerid, 24, 100);
SendClientMessage(playerid, COLOUR_YELLOW, "Vettйl egy Desert Eagle-t.");
ShowMenuForPlayer(sexshop,playerid);
}
else
{
GameTextForPlayer(playerid, "~r~Nincs eleg penzed!", 2000, 5);
HideMenuForPlayer(sexshop, playerid);
TogglePlayerControllable(playerid, 1);
}
}
case 1:
{
if(GetPlayerMoney(playerid) >= 2500)
{
GivePlayerMoney(playerid, -2500);
GivePlayerWeapon(playerid, 26, 50);
SendClientMessage(playerid, COLOUR_YELLOW, "Vettйl egy SawnOff-ot.");
ShowMenuForPlayer(sexshop,playerid);
}
else
{
GameTextForPlayer(playerid, "~r~Nincs eleg penzed!", 2000, 5);
HideMenuForPlayer(sexshop, playerid);
TogglePlayerControllable(playerid, 1);
}
}
}
return 1;
}
Reply


Messages In This Thread
Menu Problem - by bpeterson - 03.03.2009, 18:01
Re: Menu Problem - by RyDeR` - 03.03.2009, 18:18
Re: Menu Problem - by bpeterson - 03.03.2009, 18:22
Re: Menu Problem - by RyDeR` - 03.03.2009, 18:24
Re: Menu Problem - by bpeterson - 03.03.2009, 18:27
Re: Menu Problem - by ICECOLDKILLAK8 - 03.03.2009, 18:28
Re: Menu Problem - by bpeterson - 03.03.2009, 18:30
Re: Menu Problem - by Dujma - 03.03.2009, 18:58
Re: Menu Problem - by bpeterson - 04.03.2009, 13:38
Re: Menu Problem - by bpeterson - 04.03.2009, 16:27

Forum Jump:


Users browsing this thread: 1 Guest(s)