SA-MP Forums Archive
[FilterScript] [FS]Club Jizzy pickup Drink BEER,Wine,Sprunk,Smoke(DIALOG) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] [FS]Club Jizzy pickup Drink BEER,Wine,Sprunk,Smoke(DIALOG) (/showthread.php?tid=136564)



[FS]Club Jizzy pickup Drink BEER,Wine,Sprunk,Smoke(DIALOG) - [1corp]vlad - 25.03.2010

ScreenShots
When you rise on a pickup the dialog window is highlighted
In it dialog a window it is possible to drink beer, wine, sprunk, and to smoke
Sorry my bad ENGLISH =)
Please Comment


Code:
#include <a_samp>
#define FILTERSCRIPT
new zhrat;

forward OnFilterScpiptExit();
public OnFilterScriptInit()
{
zhrat = CreatePickup(1274,1,-2652.3225,1410.6608,906.2734);
return 1;
}

public OnFilterScpiptExit()
{

return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == zhrat)
{
new Float:X,Float:Y,Float:Z;
PlayerPlaySound(playerid, 1150, X, Y, Z);
ShowPlayerDialog(playerid,156,DIALOG_STYLE_LIST,"ClubJizzy","Drink Beer(1$)\nDrink Wine(2$)\nDrink Sprunk(3$)\nSmoke(5$)","Buy","Cancel");
}
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 156)
{
if(response)
{
if(listitem == 0) 
{
if(GetPlayerMoney(playerid) < 1)
return SendClientMessage(playerid, 0xFFFFFF, "You have not enough money");
GivePlayerMoney(playerid, -1);
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_BEER);
    }
if(listitem == 1)
{
if(GetPlayerMoney(playerid) < 2)
return SendClientMessage(playerid, 0xFFFFFF, "You have not enough money");
GivePlayerMoney(playerid, -2);
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_WINE);

}
if(listitem == 2)
{
if(GetPlayerMoney(playerid) < 3)
return SendClientMessage(playerid, 0xFFFFFF, "You have not enough money.");
GivePlayerMoney(playerid, -3);
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_SPRUNK);
}
if(listitem == 3)
{
if(GetPlayerMoney(playerid) < 5)
return SendClientMessage(playerid, 0xFFFFFF, "You have not enough money");
GivePlayerMoney(playerid, -3);
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_SMOKE_CIGGY);
}
}
return 1;
}
return 1;
}



Re: [FS]Club Jizzy pickup Drink BEER,Wine,Sprunk,Smoke(DIALOG) - SlashPT - 25.03.2010

russian section ?? or something?


Re: [FS]Club Jizzy pickup Drink BEER,Wine,Sprunk,Smoke(DIALOG) - Scream[SM] - 25.03.2010

Путь этот скрипт на русский раздел. или пишите на русский комментариев на английский язык.
_________________________________________________
Put this script into the Russian non-english section, or change the Russian comments into English


Re: [FS]Club Jizzy pickup Drink BEER,Wine,Sprunk,Smoke(DIALOG) - DeaD_MaN - 26.03.2010

русские пишите в русский раздел


Re: [FS]Club Jizzy pickup Drink BEER,Wine,Sprunk,Smoke(DIALOG) - Scream[SM] - 26.03.2010

Наконец, вы переписали русский комментарии на английский язык | Finally, you change the russian comments into english.
хороший сценарий, но легко | Good script, but easy
Мне очень жаль, я не могу говорить на русском очень хорошо / записи



Re: [FS]Club Jizzy pickup Drink BEER,Wine,Sprunk,Smoke(DIALOG) - [1corp]vlad - 26.03.2010

Simply I like to create pickups and dialogue windows =)


Re: [FS]Club Jizzy pickup Drink BEER,Wine,Sprunk,Smoke(DIALOG) - FujiNNN - 27.03.2010

otli4no


Re: [FS]Club Jizzy pickup Drink BEER,Wine,Sprunk,Smoke(DIALOG) - [AC]Flow - 27.05.2010

when i click select or when i double click the beer, wine or that, nothing happends plz help



Re: [FS]Club Jizzy pickup Drink BEER,Wine,Sprunk,Smoke(DIALOG) - Dude_Lebowski - 18.03.2012

yes its some weird bug


Re: [FS]Club Jizzy pickup Drink BEER,Wine,Sprunk,Smoke(DIALOG) - DJJDgtamaat - 18.03.2012

Download?? Raw ?? its easyer