addEvent ("Downnn", true) addEventHandler ("Downnn", root, function (cel, bool, thePlayer) if thePlayer then konto = getPlayerAccount(cel) setAccountData (konto, "Liccencja11111", bool) exports.informacje:pokazInfo (cel, "info", "Wydales Licencje. Gratulacje") else exports.informacje:pokazInfo (cel, "info", "Ten Gracz Juz Posiada licencje") end end )
addEvent ("TYP1", true) addEventHandler ("TYP1", getRootElement(), function (cel,thePlayer,cena) local konto = getPlayerAccount (cel) if cel then setAccountData (konto, "TYPP1", true) outputChatBox ("Dosta?e? licencje na typ Broni nr. 1", thePlayer) else outputChatBox ("Nie posiadasz Kasy", thePlayer) end end )
addEvent ("SprawdzTYP1", true) addEventHandler ("SprawdzTYP1", getRootElement(), function (thePlayer, cel) local kontko = getPlayerAccount (thePlayer) if kontko then local typ1 = getAccountData (kontko, "TYPP1") outputChatBox ("Twoje konto przesz?o weryfikacje") triggerClientEvent ("OKNO", root, localPlayer, "") else outputChatBox ("Nie posiadasz licencj na ten typ Broni") end end )