20.09.2013, 03:02
Hello guys this is my first include and hope you like it
this is a simple include to Kick, Ban/Unban, Mute/Unmute, Freeze/Unfreeze with function
to use this include, add the #include <Extra> after all include in your script, exemple:
How to use? Answer: Now you can use this:
finaly goto your scriptfiles in your server and create a file name "Extra"
Download
Solidfiles
Exemple script
this is a simple include to Kick, Ban/Unban, Mute/Unmute, Freeze/Unfreeze with function
to use this include, add the #include <Extra> after all include in your script, exemple:
pawn Код:
#include <a_samp>
#include <zcmd>
#include <sscanf2>
#include <foreach>
#include <YSI/y_ini>
#include <float>
#include <Extra>
pawn Код:
/*
native Extra_Kick(playerid, reason[]);
native Extra_Ban(playerid, reason[]);
native Extra_UnBan(playername);
native Extra_Mute(playerid, reason[]);
native Extra_UnMute(playerid, reason[]);
native Extra_Freeze(playerid, reason[]);
native Extra_UnFreeze(playerid, reason[]);
*/
Download
Solidfiles
Exemple script
pawn Код:
/*
Test script
*/
#include <a_samp>
#include <sscanf2>
#include <zcmd>
#include <extra>
CMD:ban(playerid, params[])
{
new id,reasontext[100];
if(sscanf(params,"us[100]",id,reasontext)) return SendClientMessage(playerid,-1,"USAGE: /ban [playerid] [reason]");
if(!IsPlayerConnected(id)) return SendClientMessage(playerid,-1,"That player is not connected to server");
Extra_Ban(id,reasontext);
return 1;
}