[FilterScript] [FS]Club Jizzy pickup Drink BEER,Wine,Sprunk,Smoke(DIALOG)
#1

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;
}
Reply
#2

russian section ?? or something?
Reply
#3

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

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

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

Simply I like to create pickups and dialogue windows =)
Reply
#7

otli4no
Reply
#8

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

yes its some weird bug
Reply
#10

Download?? Raw ?? its easyer
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)