SA-MP Forums Archive
[Include] Extra.inc - Kick, Ban, Mute, Freeze properly with message - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] Extra.inc - Kick, Ban, Mute, Freeze properly with message (/showthread.php?tid=464937)



Extra.inc - Kick, Ban, Mute, Freeze properly with message - xganyx - 20.09.2013

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:

pawn Код:
#include <a_samp>
#include <zcmd>
#include <sscanf2>
#include <foreach>
#include <YSI/y_ini>
#include <float>
#include <Extra>
How to use? Answer: Now you can use this:

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[]);
*/
finaly goto your scriptfiles in your server and create a file name "Extra"

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;
}



Re: Extra.inc - Kick, Ban, Mute, Freeze properly with message - carloLT - 20.09.2013

not bad, but in forums you can find better inc then this one
anyway, thanks


Re: Extra.inc - Kick, Ban, Mute, Freeze properly with message - xganyx - 20.09.2013

.... Thank you


Re: Extra.inc - Kick, Ban, Mute, Freeze properly with message - SupaVZ - 20.09.2013

Really good work.


Re: Extra.inc - Kick, Ban, Mute, Freeze properly with message - xganyx - 20.09.2013

Thanks


Re: Extra.inc - Kick, Ban, Mute, Freeze properly with message - xganyx - 20.09.2013

....