#include a_samp
#include zcmd
new bool:ittas[MAX_PLAYERS];
forward borido(playerid);
CMD:sor(playerid, params[])
{
ittas[playerid] = true;
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_WINE);
SetTimer(\"borido\", 60000*10, false);
SendClientMessage(playerid,0x00ff33AA,\"Úgydöntöttél iszol egy üveg sört!\");
return 1;
}
public borido(playerid)
{
ittas[playerid] = false;
SendClientMessage(playerid,0x00ff33AA,\"Kiürült az alkohol a szervezetedbõl!\");
}
CMD:fuj(playerid, params[])
{
if(ittas[playerid] == true)
{
new name[MAX_PLAYER_NAME],string[200];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof string, \"%s belefújt a szondába. Eredménye: {ff0000}Ittas\", name);
SendClientMessageToAll(0xfff200AA,string);
}
else
{
new name[MAX_PLAYER_NAME],string[200];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof string, \"%s belefújt a szondába. Eredménye: {00ff00}Tiszta\", name);
SendClientMessageToAll(0xfff200AA,string);
}
return 1;
}