AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Respawn help (https://forums.alliedmods.net/showthread.php?t=54105)

Blue One 04-17-2007 05:11

Respawn help
 
Hey Guys i need some help here.

i have added an Funtion to my Mod that will respawn you after 7 Secs..

but if my 7 secs. is over and the time is come for respawn. i will be killed but i can buy and other thinks.. and if i look at Bots the Bots will shot in my direction.

i need some help here please !!?

Blue One

mogel 04-17-2007 07:02

Re: Respawn help
 
Hi,

not tested (i'm at work)

Code:

public RespawnPlayer(player) {
  respawn(player)
  set_user_godmode(player, 1)
  set_task(5.0, "DisableGodmode", player)
}
public DisableGodmode(player) {
  set_user_godmode(player, 0)
}

hand, mogel


All times are GMT -4. The time now is 06:45.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.