SA-MP Forums Archive
/operation and a death system - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: /operation and a death system (/showthread.php?tid=171363)



/operation and a death system - Karl1195 - 26.08.2010

Can any one tell me where i can get a command /operation which only medics can do and it freezes the injured person for 180 seconds and does any one know where i can get a death system that when you have just like 5 hp you /crack / freezes for 500 seconds and if medics won't come you die?


Re: /operation and a death system - Nonameman - 27.08.2010

Quote:
Originally Posted by Karl1195
Посмотреть сообщение
Can any one tell me where i can get a command /operation which only medics can do and it freezes the injured person for 180 seconds and does any one know where i can get a death system that when you have just like 5 hp you /crack / freezes for 500 seconds and if medics won't come you die?
You can get it here, created for you

You'll need 'zcmd' and 'sscanf2' includes.

I created some extras in it:

- When the operation starts, both the patient and the medic get freezed, until the end of the operation.
- When the operation finishes, a variable gets value (0/1),if 0, the patient dies, else, the patient gets 100 hp, and +1 after every 1 second until he has 200 hp.

1 more thing: There's no anims in the FS, just the freeze.

http://pastebin.com/1HnwqRDL


Re: /operation and a death system - Karl1195 - 28.08.2010

Thanks a lot mate all i needed =]


Re: /operation and a death system - Nonameman - 28.08.2010

No problem. Your Welcome.