AlliedModders

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

tripc 09-03-2009 22:24

Plugin help
 
I need help with my plugin.

I want to do when admin type "now" on console or something
first 4 ppl that will type "later" will be in one string

then mix the 4ppl to 2parts randomize

that is possible?

fysiks 09-04-2009 00:23

Re: Plugin help
 
Are you on crack? That makes no sense.

If you have code, post it here so we can at least have a chance at understanding what in the world you are talking about.

tripc 09-04-2009 00:26

Re: Plugin help
 
maybe you didnt understond me..

its like gatherbot, when someone type "add" its will add him
when 10 ppl did "add" its will take all the 10 ppl and mix them to 2 teams

now you can help me? =]

Bad_Bud 09-04-2009 01:38

Re: Plugin help
 
It sounds fairly basic. Do you have any code?

tripc 09-04-2009 01:44

Re: Plugin help
 
no..
that why I asking from help, I dont know how to start that
can you show me an example or tell me how to do it?

Bad_Bud 09-04-2009 03:02

Re: Plugin help
 
http://wiki.amxmodx.org/Category:Doc...28AMX_Mod_X%29

Start there and read as many tutorials as you can handle, and then attempt to do some basic stuff. Once you have a little code to work with, give it a post and we can help out a little better.

tripc 09-04-2009 03:04

Re: Plugin help
 
are you serious?
I know the basic stuff...
but I dont know how to do that

can you just tell me how to do it?
I dont ask for code

Bad_Bud 09-04-2009 03:32

Re: Plugin help
 
The only thing I can imagine you could need help with if you know the basics would be this, then:

register_clcmd

read_argc

read_args

read_argv

PHP Code:

plugin_init()
{
     ...
     
register_clcmd("now","cmd_Now")
     
register_clcmd("later","cmd_Later")
     ...
}

public 
cmd_Now(id)
{
     
//Do the now stuff
     
     
return PLUGIN_HANDLED
}

public 
cmd_Later(id)
{
     new 
cmd[64]
     
read_args(cmd,63)//If for some reason you wanted to get what they typed.

     
read_argv(1,cmd,63)//If for some reason you only wanted a certain part.
     
     //Do the later stuff
     
     
return PLUGIN_HANDLED


P.S. I am serious because your description is terrible.

tripc 09-04-2009 04:11

Re: Plugin help
 
@Bad_Bud
You didnt understond me..

I meant to say when the admin say "now"
first 10 ppl that say "me" or something will mixed to 2 teams

my problem is, I dont know how to get the ppl into a array or something and mixed them

Exolent[jNr] 09-04-2009 04:21

Re: Plugin help
 
Why not just use an admin command that just randomizes the teams?


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

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