Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- waitUntil {isDedicated || !isNull player};
- if (isServer) then
- {
- TAG_fn_death =
- {
- if (TAG_deaths > 0) then
- {
- [nil,nil,rHint,format ["Tickets left : %1",TAG_deaths] call RE;
- }
- else
- {
- [nil,nil,rHint,"No more tickets left."] CALL RE;
- // nåt mer för att trigga spectate eller bara stänga uppdraget
- };
- };
- "TAG_deaths" addPublicVariableEventHandler
- {
- call TAG_fn_death;
- };
- };
- if (local player) then
- {
- player addEventHandler ["Respawn",
- {
- TAG_deaths = TAG_deaths - 1;
- if (isServer) then
- {
- call TAG_fn_death;
- }
- else
- {
- publicVariableServer "TAG_deaths"
- };
- }];
- };
Add Comment
Please, Sign In to add comment