#include <a_samp>new vmi, bool:felvette[MAX_PLAYERS];forward nemvettefel(playerid);public nemvettefel(playerid){ felvette[playerid]=false;return 1;}public OnPlayerSpawn(playerid){felvette[playerid]=false;return 1;}public OnGameModeInit(){vmi = CreatePickup(1242, 2, 1503.3359, 1432.3585, 10.1191, -1);return 1;}public OnPlayerCommandText(playerid, cmdtext[]){if(!strcmp(\"/buykaja\", cmdtext, true)){if(felvette[playerid] == false) return SendClientMessage(playerid,0xFFFF00AA,\"nem vagy kajáldában akkor hogy akarsz enni?\");ShowPlayerDialog(playerid, 0,DIALOG_STYLE_LIST, \"kaja:\",\"csirkemell\\ntyúkhere\",\"megeszem\",\"nemeszemmeg\");}return 0;}public OnPlayerPickUpPickup(playerid, pickupid){if(pickupid == vmi){ felvette[playerid]=true; GameTextForPlayer(playerid, \"/buykaja\", 10000,6); SetTimer(\"nemvettefel\", 40000, false);}return 1;}public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]){ if(dialogid == 0) {if(response == 1){ switch(listitem) { case 0: { SetPlayerHealth(playerid, 100); SendClientMessage(playerid, 0x38FF06FF, \"csirkemellet vettél\" ); GivePlayerMoney(playerid,-100); } case 1: { SetPlayerHealth(playerid, 100); SendClientMessage(playerid, 0x38FF06FF, \"tyúkherét vettél\" ); GivePlayerMoney(playerid,-100); } }}else{ SendClientMessage(playerid, 0xEB000FFF, \"miért nem eszel tyúkherét?\");}return 1;}return 0;}