[Include] Extra.inc - Kick, Ban, Mute, Freeze properly with message
#1

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;
}
Reply
#2

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

.... Thank you
Reply
#4

Really good work.
Reply
#5

Thanks
Reply
#6

....
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)