moving admins cmd's into _admin.pwn

This commit is contained in:
Lorenc Pekaj 2018-12-23 00:56:55 +11:00
parent abe07e8be3
commit de8cca84be
3 changed files with 10 additions and 19 deletions

View File

@ -290,3 +290,8 @@ hook OnDialogResponse( playerid, dialogid, response, listitem, inputtext[ ] )
/* ** Modules ** */ /* ** Modules ** */
#include "irresistible\cnr\commands\admin\admin_one.pwn" #include "irresistible\cnr\commands\admin\admin_one.pwn"
#include "irresistible\cnr\commands\admin\admin_two.pwn" #include "irresistible\cnr\commands\admin\admin_two.pwn"
#include "irresistible\cnr\commands\admin\admin_three.pwn"
#include "irresistible\cnr\commands\admin\admin_four.pwn"
#include "irresistible\cnr\commands\admin\admin_five.pwn"
#include "irresistible\cnr\commands\admin\admin_six.pwn"
#include "irresistible\cnr\commands\admin\admin_rcon.pwn"

View File

@ -36,6 +36,10 @@ new stock
DCC_Role: discordRoleVoice DCC_Role: discordRoleVoice
; ;
stock DCC_SendChannelMessageFormatted( DCC_Channel: channel, const format[ ], va_args< > ) {
return DCC_SendChannelMessage( channel, va_return( format, va_start< 2 > ) );
}
/* ** Error Checking ** */ /* ** Error Checking ** */
#if defined DISCORD_DISABLED #if defined DISCORD_DISABLED
stock DCC_SendChannelMessage( DCC_Channel: channel, const message[ ] ) { stock DCC_SendChannelMessage( DCC_Channel: channel, const message[ ] ) {

View File

@ -72,8 +72,7 @@ new bool: False = false;
/* Beast Functions */ /* Beast Functions */
#define SendClientMessageToVips(%1,%2,%3) \ #define SendClientMessageToVips(%1,%2,%3) \
do{foreach(new fI : Player){if (p_VIPLevel[fI]>=VIP_REGULAR)format(szNormalString,sizeof(szNormalString),(%2),%3),SendClientMessage(fI,(%1),szNormalString);}}while(False) do{foreach(new fI : Player){if (p_VIPLevel[fI]>=VIP_REGULAR)format(szNormalString,sizeof(szNormalString),(%2),%3),SendClientMessage(fI,(%1),szNormalString);}}while(False)
#define DCC_SendChannelMessageFormatted(%0,%1,%2) \
do{format(szNormalString,sizeof(szNormalString),(%1),%2),DCC_SendChannelMessage(%0,szNormalString);}while(False)
#define CreateBillboard(%0,%1,%2,%3,%4) SetDynamicObjectMaterialText(CreateDynamicObject(7246,%1,%2,%3,0,0,%4),0,(%0),120,"Arial",24,0,-1,-16777216,1) #define CreateBillboard(%0,%1,%2,%3,%4) SetDynamicObjectMaterialText(CreateDynamicObject(7246,%1,%2,%3,0,0,%4),0,(%0),120,"Arial",24,0,-1,-16777216,1)
@ -4928,23 +4927,6 @@ CMD:rape( playerid, params[ ] )
return 1; return 1;
} }
/* ________ ___ ___ ________ ___________
/--------------\ / \ | \ / | | ___ \ / |
| ______ | | ______/ | \ / | | | | \ | _______|
| | | | | | | \/ | | | | | | \_______
| |______| | ________ | | | | | | | | \_______ |
| ______ | |________| | | | |\__/| | | | | | / |
| | | | | |______ | | | | | | | | _______/ /
| | | | | \ | | | | |___| / | /
\___/ \___/ \__________/ |___| |___| |________/ |__________/
*/
#include "irresistible\cnr\commands\admin\admin_three.pwn" // move to irresistible\cnr\commands\admin\_admin.pwn
#include "irresistible\cnr\commands\admin\admin_four.pwn" // move to irresistible\cnr\commands\admin\_admin.pwn
#include "irresistible\cnr\commands\admin\admin_five.pwn" // move to irresistible\cnr\commands\admin\_admin.pwn
#include "irresistible\cnr\commands\admin\admin_six.pwn" // move to irresistible\cnr\commands\admin\_admin.pwn
#include "irresistible\cnr\commands\admin\admin_rcon.pwn" // move to irresistible\cnr\commands\admin\_admin.pwn
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{ {
new new