29.12.2011, 14:31
(
Последний раз редактировалось Andi_Evandy; 30.12.2011 в 01:47.
Причина: Little Fix
)
try this:
(The Shop Dialog)
(The Shop Dialog)
pawn Код:
if(dialogid == 7 && response)
{
switch(listitem)
{
case 0:
{
if(GetPVarInt(playerid,"HaveMP3") == 1) return SendClientMessage(playerid, -1, "{FF0000}You already have a MP3 player");
if(GetPlayerMoney(playerid) < 1000) return SendClientMessage(playerid, -1, "{FF0000}You don't have $1000 to buy a mp3 player");
GivePlayerMoney(playerid, -1000);
SendClientMessage(playerid, COLOR_YELLOW, "You bought a MP3 player");
SetPVarInt(playerid,"HaveMP3",1);
}
}
}