AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [HELP] How to take when a player is revived or a new round begins. (https://forums.alliedmods.net/showthread.php?t=233175)

Starman 01-10-2014 19:18

[HELP] How to take when a player is revived or a new round begins.
 
Well, I think for many this query is quite simple, I've searched the internet but without success, or perhaps because of misinterpretation was passing, however I have a forward in mind:

Code:

RegisterHam(Ham_Spawn, "player", "SpawnPlayer", 1)
Code:

public SpawnPlayer(id)
{
    // Code
}

And if it's not the right way, let me know and please show me an example of the right way... Well, I'm not sure if it is this way because I have not tried, but I want to make sure first before you make the mistake, I would like to help me, greetings :D

wickedd 01-10-2014 20:19

Re: [HELP] How to take when a player is revived or a new round begins.
 
The is code correct. However, you need to explain what you are trying to do, because that will work when ever a player spawn.

P.S. Next time test your code before posting.


All times are GMT -4. The time now is 10:08.

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