Raised This Month: $32 Target: $400
 8% 

New Restart Round


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Admin Commands       
Houssam Benmouna
Senior Member
Join Date: Apr 2016
Old 06-04-2016 , 11:20   New Restart Round
Reply With Quote #1

Hi All I post New Plugin , Restart Round Working No Bug
(Sorry For Bad English)

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <colorchat>

#define PLUGIN "restart round"
#define VERSION "1.0"
#define AUTHOR "PlayBoy"


public plugin_init() {
    
register_plugin("cmd restart round""1.0""PlayBoy")
    
    
register_clcmd("sv_restartround""cmd_sv_restartround")
}

public 
cmd_sv_restartround(id)
{
    if(
is_user_admin(id))
    {    
        new 
szName[32]
        
get_user_name(idszName32)    
        
server_cmd("sv_restartround 1")
        
server_cmd("sv_restart 1"
        
ColorChat(0RED"[Restart Round] ^1Admin: ^4%s ^1Restart Round ^4!"szName
    }

Attached Files
File Type: ini cmds.ini (537 Bytes, 179 views)
File Type: sma Get Plugin or Get Source (restartround.sma - 678 views - 610 Bytes)

Last edited by Houssam Benmouna; 06-04-2016 at 11:26.
Houssam Benmouna is offline
Old 06-04-2016, 11:25
Houssam Benmouna
This message has been deleted by Houssam Benmouna.
wickedd
Veteran Member
Join Date: Nov 2009
Old 06-04-2016 , 11:45   Re: New Restart Round
Reply With Quote #2

Stop posting these useless plugins.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
Houssam Benmouna
Senior Member
Join Date: Apr 2016
Old 06-04-2016 , 11:47   Re: New Restart Round
Reply With Quote #3

Sorry
Houssam Benmouna is offline
dr hicham
Senior Member
Join Date: Sep 2015
Location: Morocco
Old 06-04-2016 , 11:51   Re: New Restart Round
Reply With Quote #4

Nice Plugin Bro
But Stop Post Auters Plugins Useless
__________________
اَشْهَدُ اَنْ لَّآ اِلٰهَ اِلَّا اللہُ وَحْدَه لَا شَرِيْكَ لَه وَ اَشْهَدُ اَنَّ مُحَمَّدًا عَبْدُه وَرَسُوْلُه
dr hicham is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 06-04-2016 , 12:57   Re: New Restart Round
Reply With Quote #5

Unapproved. Please take time to learn and post some quality work.
__________________
HamletEagle is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 06-09-2016 , 09:08   Re: New Restart Round
Reply With Quote #6

His Signature says enough.
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
siriusmd99
Veteran Member
Join Date: Oct 2013
Location: Republic of Moldova
Old 06-12-2016 , 14:51   Re: New Restart Round
Reply With Quote #7

And the signature:
PHP Code:
get_user_name(idszName32)//Must be 31 or charsmax(szName) 
However, idea is not bad. Sometimes owners want to give acces to their admins to such commands but they don't want to give them cvar access,because it can be used to other commands like sv_gravity, which is too much.

He can do a plugin with many these commands, like:
amx_restartround
amx_gravity
amx_airaccelerate
and more others...

Set access ADMIN_CVAR by default and owners will change access to them from cmdaccess.ini .
This will be a good plugin.
But this one you posted is too "tight", there should be something general that not only 1 owner will use.

As it is easy to do you will improve your scripting skills and also give to people nice plugin.

Last edited by siriusmd99; 06-12-2016 at 14:54.
siriusmd99 is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 06-14-2016 , 07:11   Re: New Restart Round
Reply With Quote #8

I don't even think this is a plugin that he wrote.
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
Amine Belokda
Senior Member
Join Date: Oct 2015
Location: ML_NOT_FOUND
Old 06-19-2016 , 00:59   Re: New Restart Round
Reply With Quote #9

Quote:
Originally Posted by Houssam Benmouna View Post
Hi All I post New Plugin , Restart Round Working No Bug
(Sorry For Bad English)

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <colorchat>

#define PLUGIN "restart round"
#define VERSION "1.0"
#define AUTHOR "PlayBoy"

// Add This TO Fixed Plugin -_- //
#define is_user_admin(%1)   (get_user_flags(%1) & ADMIN_KICK)

public plugin_init() {
    
register_plugin("cmd restart round""1.0""PlayBoy")
    
    
register_clcmd("sv_restartround""cmd_sv_restartround")
}

public 
cmd_sv_restartround(id)
{
    if(
is_user_admin(id))
    {    
        new 
szName[32]
        
get_user_name(idszName32)    
        
server_cmd("sv_restartround 1")
        
server_cmd("sv_restart 1"
        
ColorChat(0RED"[Restart Round] ^1Admin: ^4%s ^1Restart Round ^4!"szName
    }

__________________
Amine Belokda is offline
Send a message via MSN to Amine Belokda
Houssam Benmouna
Senior Member
Join Date: Apr 2016
Old 06-21-2016 , 08:17   Re: New Restart Round
Reply With Quote #10

Thnx
Houssam Benmouna is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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