[FilterScript] [FS]Spawn Protection
#12

Quote:
Originally Posted by $ЂЯĢ
Label needs to be created under OnPlayerSpawn, otherwise it will work only for the first time (since you delete it under OnPlayerProtectionOff and if player spawns again there won't be any label).
'protection' time is constant, so it's useless to make it variable (just make #define PROTECTIONTIME 5000).

It's also good idea to desync player while being under protection (return ' under OnPlayerUpdate) otherwise possible spawnkillers can simply follow that palyer for those 5 seconds and kill afterwards. Oh and make that protected palyer can't use weapons during that time (SetPlayerArmedWeapon).

This is how I'd do it: http://pawn.pastebin.com/ZjcT5RCD
thats another way to do it.
but it works just fine the way i made it so i wont change it.
Reply


Messages In This Thread
[FS]Spawn Protection - by BurningSWA - 29.03.2010, 16:27
Re: [FS]Spawn Protection - by ruckfules99 - 29.03.2010, 21:40
Re: [FS]Spawn Protection - by Lorenc_ - 29.03.2010, 23:10
Re: [FS]Spawn Protection - by Postalityjr - 30.03.2010, 02:22
Re: [FS]Spawn Protection - by Scenario - 30.03.2010, 02:43
Re: [FS]Spawn Protection - by [MK]Soprano - 30.03.2010, 06:09
Re: [FS]Spawn Protection - by BurningSWA - 30.03.2010, 15:04
Re: [FS]Spawn Protection - by WebGh0st - 30.03.2010, 15:29
Re: [FS]Spawn Protection - by BurningSWA - 30.03.2010, 16:40
Re: [FS]Spawn Protection - by Sergei - 30.03.2010, 17:10
Re: [FS]Spawn Protection - by [MWR]Blood - 30.03.2010, 17:11
Re: [FS]Spawn Protection - by BurningSWA - 30.03.2010, 17:30
Re: [FS]Spawn Protection - by biltong - 30.03.2010, 19:49
Re: [FS]Spawn Protection - by BlueSky® - 14.05.2010, 11:43
Re: [FS]Spawn Protection - by ViruZZzZ_ChiLLL - 14.05.2010, 11:45
Re: [FS]Spawn Protection - by panther74 - 18.05.2010, 22:38
Re: [FS]Spawn Protection - by luigifan9 - 18.05.2010, 22:52
Re: [FS]Spawn Protection - by BurningSWA - 25.05.2010, 07:56
Re: [FS]Spawn Protection - by caldaia - 25.05.2010, 16:53
Re: [FS]Spawn Protection - by wr4h4ck - 25.05.2010, 21:50
Re: [FS]Spawn Protection - by DevilRP - 25.05.2010, 22:22
Re: [FS]Spawn Protection - by Ya$N - 25.05.2010, 22:53
Re: [FS]Spawn Protection - by DevilRP - 27.05.2010, 03:18
Re: [FS]Spawn Protection - by Johny_James - 22.07.2010, 21:56
Respuesta: [FS]Spawn Protection - by Adriano499 - 22.07.2010, 22:32
Re: [FS]Spawn Protection - by Chrillzen - 23.07.2010, 16:31
Re: [FS]Spawn Protection - by hossienabdalaziz - 23.07.2010, 19:12
Re: [FS]Spawn Protection - by Shadow_Gengar - 24.07.2010, 09:29
Re: [FS]Spawn Protection - by OldDirtyBastard - 03.08.2010, 15:44
Re: [FS]Spawn Protection - by NitroSWA - 03.08.2010, 15:47
Re: [FS]Spawn Protection - by The Pro - 22.05.2011, 06:57
Re: [FS]Spawn Protection - by Kerlan - 12.09.2011, 16:01
Re: [FS]Spawn Protection - by Sasino97 - 12.09.2011, 17:38
Re: [FS]Spawn Protection - by Kaperstone - 12.09.2011, 17:41
Re : [FS]Spawn Protection - by mehdi-jumper - 18.11.2011, 18:39

Forum Jump:


Users browsing this thread: 1 Guest(s)