Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onSpecial(str)
- local t = table.unserialize(str)
- local cid = t["cid"]
- if(t["name"] == "event_tdm") then
- if(t["typ"] == "prepareDeath") then
- event_tdm.death(cid)
- end
- elseif(t['name'] == 'event_ze') then
- if(t['typ'] == 'onStatsChange') then
- cid = t['variable']
- event_ze.onStatsChange(cid[1], cid[2], cid[3])
- elseif(t['typ'] == 'onUse') then
- return event_ze.onUse(cid)
- end
- elseif(t["name"] == "event_universal") then
- if(t["typ"] == "join") then
- if(event_tdm.state == 1) then
- event_tdm.join(cid)
- elseif(event_ze.state == 1) then
- event_ze.join(cid)
- else
- doPlayerSendCancel(cid,"No running events are able to join.")
- end
- elseif(t["typ"] == "leave") then
- if(event_tdm.state == 1) then
- event_tdm.leave(cid)
- elseif(event_ze.state == 1) then
- event_ze.leave(cid, event_ze.inserted, true)
- else
- doPlayerSendCancel(cid,"No running events are able to leave.")
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement