[Include] Extra.inc - Kick, Ban, Mute, Freeze With Message (Hooked version) (My first include)
#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

new version v2.1 fixed bugs and add SendMessage

to use this include, add the #include <Extra> in your script, exemple:

pawn Код:
#include <a_samp>
#include <Extra>
#include <core>
#include <sscanf2>
#include <float>
#include <zcmd>
//....
Function

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

Extra.inc v2.1 Pastebin
Extra.inc Pastebin

Exemple script

pawn Код:
/****************
    Exemple 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;
}
Credits:
Код:
Dracoblue
_Emmet - show me the bugs
Me (WazzUp)
Reply


Messages In This Thread
Extra.inc - Kick, Ban, Mute, Freeze With Message (Hooked version) (My first include) - by xganyx - 15.10.2013, 04:09
Respuesta: Extra.inc - Kick, Ban, Mute, Freeze With Message (Hooked version) (My first include) - by Swedky - 15.10.2013, 04:13
Re: Extra.inc - Kick, Ban, Mute, Freeze With Message (Hooked version) (My first include) - by shittt - 15.10.2013, 04:33
AW: Extra.inc - Kick, Ban, Mute, Freeze With Message (Hooked version) (My first include) - by BigETI - 15.10.2013, 11:05
Re: Extra.inc - Kick, Ban, Mute, Freeze With Message (Hooked version) (My first include) - by xganyx - 16.10.2013, 01:33
Re: Extra.inc - Kick, Ban, Mute, Freeze With Message (Hooked version) (My first include) - by Juniiro3 - 16.10.2013, 02:07
Re: Extra.inc - Kick, Ban, Mute, Freeze With Message (Hooked version) (My first include) - by Rocky Racoon - 16.10.2013, 02:10
Re: Extra.inc - Kick, Ban, Mute, Freeze With Message (Hooked version) (My first include) - by iZN - 16.10.2013, 03:23
Re: Extra.inc - Kick, Ban, Mute, Freeze With Message (Hooked version) (My first include) - by Emmet_ - 16.10.2013, 04:41
Re: Extra.inc - Kick, Ban, Mute, Freeze With Message (Hooked version) (My first include) - by Jardell - 16.10.2013, 22:09
Re: Extra.inc - Kick, Ban, Mute, Freeze With Message (Hooked version) (My first include) - by xganyx - 17.10.2013, 04:44
Re: Extra.inc - Kick, Ban, Mute, Freeze With Message (Hooked version) (My first include) - by TheChimpJr - 17.10.2013, 13:32
Re: Extra.inc - Kick, Ban, Mute, Freeze With Message (Hooked version) (My first include) - by xganyx - 18.10.2013, 01:05

Forum Jump:


Users browsing this thread: 1 Guest(s)