AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Join team event (https://forums.alliedmods.net/showthread.php?t=94091)

dstopgunner 06-06-2009 07:40

Join team event
 
Hello there is a map called awp_crazysomethin. Its a map every cts spawn in a cage with awp. the terrorists spawn far away where they have to fly on slopes to other side so that cts can shoot them.
the terrorists have to walk nearer to the cts until they reach a room where there are grenades and m249 so that they can kill the cts =]

But I think there should be only max of 5 cts in the map.
How i do this?

is it correct to use

register_logevent("event_jointeam", 3, "1=joined team")

and

PHP Code:

public event_jointeam()
{
     new 
ctteamplayers getplayersstuff.......(CT)
     if( 
ctteamplayers 4)
     {
          
engclientcmd(id ,)
          
engclientcmd(id ,)
     }


or something?

dstopgunner 06-07-2009 05:31

Re: Join team event
 
Bump

hleV 06-07-2009 06:17

Re: Join team event
 
Don't bump unless 14 days have passed since the last post.

toazron1 06-07-2009 13:13

Re: Join team event
 
Code:

public jointeamevent()
{
      new count = getplayerson(ct);

      if( count
> 5 )
      {
            return plugin_handled;
      }
}




All times are GMT -4. The time now is 14:03.

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