AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   HL Player's Spawn (https://forums.alliedmods.net/showthread.php?t=98188)

fezh 07-23-2009 11:30

HL Player's Spawn
 
Some time ago I tried to get that, but it seems that (obviously) is not the same as Counter-Strike. So, is there a way to identify player's spawns?

Arkshine 07-23-2009 11:49

Re: HL Player's Spawn
 
The Hamsandwich way is the most efficient.

Code:
    #include <amxmodx>     #include <hamsandwich>         public plugin_init()     {         RegisterHam( Ham_Spawn, "player", "CPlayer_Spawn", 1 );     }         public CPlayer_Spawn ( const Player )     {         if ( is_user_alive( Player ) )         {             // Player spawns.         }     }


All times are GMT -4. The time now is 18:27.

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