AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Get player in event NewRound (https://forums.alliedmods.net/showthread.php?t=98688)

5c0r-|3i0 07-27-2009 22:43

Get player in event NewRound
 
How....Please help ...:oops:

Bugsy 07-27-2009 23:43

Re: Get player in event NewRound
 
Get who\what player at NewRound? Explain further please.

5c0r-|3i0 07-27-2009 23:50

Re: Get player in event NewRound
 
I want to get player id ...So I can give player items at round start , or do something else...

Tirant 07-28-2009 00:09

Re: Get player in event NewRound
 
Try this, it should work.

Code:

new MaxPlayers

public plugin_init()
register_logevent("EventRoundStart", 2, "1=Round_Start");

public EventRoundStart()
{
            for (new id = 1; id <= MaxPlayers; id++)
            if (is_user_alive(id))
            {
                          //add your code here
            }
}


Bugsy 07-28-2009 00:15

Re: Get player in event NewRound
 
This method uses hamsandwich\fakemeta to give players items when they are spawned (pretty much equivalent to @ new round). You can remove fakemeta and use an alternate method of giving items if you want to avoid using fakemeta for whatever reason.

http://forums.alliedmods.net/showpos...10&postcount=4

5c0r-|3i0 07-28-2009 00:20

Re: Get player in event NewRound
 
Thanks...


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

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