15.10.2013, 04:09
(
Последний раз редактировалось xganyx; 17.10.2013 в 04:40.
)
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:
Function
Download
Extra.inc v2.1 Pastebin
Extra.inc Pastebin
Exemple script
Credits:
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>
//....
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[]);
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;
}
Код:
Dracoblue _Emmet - show me the bugs Me (WazzUp)