Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Plugin generated by AMXX-Studio */
- #include <amxmodx>
- #include <amxmisc>
- #define PLUGIN "New Plug-In"
- #define VERSION "1.0"
- #define AUTHOR "author"
- public plugin_init() {
- register_plugin(PLUGIN, VERSION, AUTHOR)
- register_concmd("amx_transfer", "cmd_transfer", _, "<num>", 0)
- register_cvar("transfer_time","5.0")
- // Add your code here...
- }
- public cmd_transfer(id, level, cid)
- {
- static arg[32], num, Float:cvar_value
- cvar_value = get_cvar_float("transfer_time")
- read_argv(1, arg, charsmax(arg))
- for(new i = 0; i < get_maxplayers();i++)
- {
- if(is_user_connected(i))
- num++
- }
- if(str_to_num(arg) >= num)
- return PLUGIN_HANDLED
- for(new i = 1; i <= num;i++)
- {
- set_task(cvar_value,"task_redirect", i+384)
- }
- return PLUGIN_HANDLED;
- }
- public task_redirect(id)
- {
- id-=384
- client_cmd(id, "")
- }
Advertisement
Add Comment
Please, Sign In to add comment