Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- anti spawn kill by kiki -..-
- */
- class AN
- {
- Time = 0
- IsProtected = false
- }
- function onScriptLoad()
- {
- AP <- array( GetMaxPlayers(), null );
- print("\r [Load] Anti spawnkill by kiki loaded.")
- }
- function onPlayerJoin(player)
- {
- AP[player.ID] = AN
- }
- function onPlayerSpawn(player)
- {
- AP[player.ID].Time = Time()
- }
- function onPlayerKill(killer,player,bodypart,reason)
- {
- if (( Time() - AP[player.ID].Time ) < 5 )
- {
- Message("[Server] Auto drowned " + killer.Name + " For spawn killing.")
- killer.Pos(9999,9999,999)
- }
- }
- function onPlayerTeamKill(killer,player,bodypart,reason)
- {
- if (( Time() - AP[player.ID].Time ) < 5 )
- {
- Message("[Server] Auto drowned " + killer.Name + " For spawn killing.")
- killer.Pos(9999,9999,999)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement