function bCheckInventory(p: player, t: text, i: itemtype):
if {_t} is "while":
if {_p} doesn't have enough space for any item:
send player title "miejsce" with subtitle "nie masz miejsca w eq"
else if {_t} is "event":
if {_p} doesn't have enough space for {_i}:
send player title "miejsce" with subtitle "nie masz miejsca w eq"
on join:
while player is online:
bCheckInventory(player, "while", stone)
wait 2 minutes
on pick up:
bCheckInventory(player, "event", event-item)
wiem, że trochę nieudolna ta funkcja, ale powinno działać