local act = false
function main()
sampAddChatMessage('asd', -1)
sampRegisterChatCommand("asd", checkScoreAndQuit)
end
function checkScoreAndQuit()
if act then
local score = sampGetPlayerScore(sampGetPlayerIdByCharHandle(PLAYER_PED))
if score == 1 then...