Help Me Filter Script Codings
#1

Hello Guys I Have just started scripting ago and saw'ed some tutorials about coding filter script making them but i make my own filter script of fake admin things and refund but when i go in game and load the filter script it loads then i get into my server and use /fkick /fban /refund /hms(hitman hq site checkpoint) my server says unknown command help me with this command filter script please
Код:
//
// FAKE ADMIN COMMANDS,REFUND AND CHECKPOINT COMMANDS
//#define FILTERSCRIPT

#include <a_samp>

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
SetPlayerArmour(100)
}
SetPlayerScore(3)
{
SetPlayerSkin(4,59)
SetPlayerSkin(5,59)
SetPlayerSkin(6,59)
SetPlayerSkin(7,59)
SetPlayerSkin(8,59)
SetPlayerSkin(9,59)
SetPlayerSkin(10,59)
}
GivePlayerMoney(2000000)
	return 1;
}
return 1;
{
}
main()
{
	print("\n----------------------------------");
	print(" <Aduty System By ADMINTHCRONALDO");
	print("----------------------------------\n");
}

/*
C
O
M
M
A
N
D
S
*/
CMD:faduty(playerid, params[])
{
	if(FakeAdminDuty[playerid] != 1)
	{
	    SaveChar(playerid);
		FakeAdminDuty[playerid] = 1;
		SendClientMessage(playerid, -1, "You are now on duty as an admin.");
	}
	else
	{
	    FakeAdminDuty[playerid] = 0;
	    SendClientMessage(playerid, -1, "You are now off duty as an admin.");
	}
	return 1;
}
CMD:fkick(playerid, params[])
	if(AdminDuty[playerid] != 1)
	{
	    SaveChar(playerid);
		AdminDuty[playerid] = 1;
		SendClientMessage(playerid, -1, "[playerid]0x7A4F4799,You Are Kicked From The Server
		SendClientMessageToAll(0x7A4F4799,Player Was Successfully Kicked From The Server).");
}
CMD:fban(playerid, params[])
{
	if(FakeAdminDuty[playerid] != 1)
	{
	    SaveChar(playerid);
		FakeAdminDuty[playerid] = 1;
		SendClientMessage(playerid, -1, "[playerid]0x7A4F4799,You Have Been Banned From The Server By Admin.");
		SendClientMessageToAll(0x7A4F4799,A Player Was Successfully Kicked From The Server)
}
CMD:refund(playerid, params[])
{
	if(FakeAdminDuty[playerid] != 1)
	{
	    SaveChar(playerid);
		FakeAdminDuty[playerid] = 1;
		SendClientMessage(playerid, -1, "[playerid]0x7A4F4799,You Have Been Refunded By An Admin.");
        SetPlayerSkin(playerid,59)
        SetPlayerArmour(playerid,100)
        GivePlayerMoney(playerid,350000)
        SetPlayerScore(playerid,3)
        
}
CMD:hmc(playerid, params[])
{
	if(FakeAdminDuty[playerid] != 1)
	{
	    SaveChar(playerid);
		FakeAdminDuty[playerid] = 1;
		SendClientMessage(playerid, -1, "[playerid]0x7A4F4799,An Admin Have Shown You Hitman New HQ Place.");
        CreateCheckpoint(7,988.1746,1237.4130,11.4381,268.6742,0,0,0,0,0,0)
        ShowCheckpointForPlayer(playerid,1,player)
}

 -end of file-
 #endif
Thank You
Reply


Messages In This Thread
Help Me Filter Script Codings - by Vest - 05.08.2013, 06:21
Re: Help Me Filter Script Codings - by StormDust - 05.08.2013, 06:40
Re: Help Me Filter Script Codings - by Vest - 05.08.2013, 08:13
Re: Help Me Filter Script Codings - by ZombieNest - 29.03.2014, 12:44
Re: Help Me Filter Script Codings - by BroZeus - 29.03.2014, 13:13

Forum Jump:


Users browsing this thread: 2 Guest(s)