31.01.2012, 16:01
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/kill", cmdtext, true, 10) == 0)
{
SetPlayerHealth(playerid, 0);
SendClientMessage(playerid, COLOR_ORANGE, "(INFO)YOU HAVE COMMITED SUICIDE.!");
return 1;
}
if (strcmp("/rules", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, COLOR_ORANGE, "(INFO)1.Do not car park.!");
SendClientMessage(playerid, COLOR_ORANGE, "(INFO)2.Do not kill with heli blade.!");
SendClientMessage(playerid, COLOR_ORANGE, "(INFO)3.Do not kill players with armoured vehicle in spawn position.!");
SendClientMessage(playerid, COLOR_ORANGE, "(INFO)4.Do not disrespect players.!");
SendClientMessage(playerid, COLOR_ORANGE, "(INFO)5.Treat Everyone As Your Own Brother.!");
return 1;
}
if (strcmp("/help", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, COLOR_ORANGE, "(INFO)1.Welcome To Our Server.!");
SendClientMessage(playerid, COLOR_ORANGE, "(INFO)2.Use /cmds to know server commands.!");
return 1;
}
if (strcmp("/banrules", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, COLOR_ORANGE, "(INFO)1.Massive Spawnkill Can Cause Immediate Ban After 2 Kicks.!");
SendClientMessage(playerid, COLOR_ORANGE, "(INFO)2.Any Kind Of Cheating Will Lead You To An Immediate Ban.!");
SendClientMessage(playerid, COLOR_ORANGE, "(INFO)3.If You Are TempBanned If You Ban Evade Then It Will Lead You To Permanent Ban.!");
SendClientMessage(playerid, COLOR_ORANGE, "(INFO)4.If You Disrespect Player It Will Lead You To A Permanent Banned After 2 Kicks.!");
return 1;
}
if (strcmp("/tbrules", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, COLOR_ORANGE, "(INFO)1.TBrules mean Temporarily Ban Rules.!");
SendClientMessage(playerid, COLOR_ORANGE, "(INFO)2.Any Kind Of Rule Break Abuse Will Lead You To Be Tbanned.!");
SendClientMessage(playerid, COLOR_ORANGE, "(INFO)3.If You Are TempBanned If You Ban Evade Then It Will Lead You To Permanent Ban.!");
SendClientMessage(playerid, COLOR_ORANGE, "(INFO)4.If You Disrespect Player It Will Lead You To A Tban Banned After 3 Warns And A Tban Of 24 Hours.!");
SendClientMessage(playerid, COLOR_ORANGE, "(INFO)5.If You Are Banned And Always Evading It Will Lead You To Infinite Day TempBan.!");
return 1;
}
if (strcmp("/heal", cmdtext, true, 10) == 0)
{
SetPlayerHealth(playerid, 100);
SendClientMessage(playerid, COLOR_GREY, "(INFO)You Have Been Healed.!");
return 1;
}
if (strcmp("/armour", cmdtext, true, 10) == 0)
{
SetPlayerArmour(playerid, 100);
SendClientMessage(playerid, COLOR_GREY, "(INFO)You Have Been Armoured.!");
return 1;
}
if (strcmp("/weaponstat", cmdtext, true, 10) == 0)
{
GetPlayerAmmo(playerid);
SendClientMessage(playerid, COLOR_GREY, "(INFO)You Have Been Shoed Your Weapon Stat.!");
return 1;
}
if (strcmp("/setscore", cmdtext, true, 10) == 0)
{
SetPlayerScore(playerid, 10);
SendClientMessage(playerid, COLOR_GREY, "(INFO)Your Score Has Been Set By Administrator.!");
return 1;
}
if (strcmp("/cmds", cmdtext, true, 10) == 0)
This V1.0 is for new scripters ABOVE YOU CAN SEE THE COMMANDS JUST COPY PASTE IT AND IF YOU LIKE THE
COMMANDS PLEASE + REPUTATION POINT BECAUSE I NEED IT.
SendClientMessage(playerid, COLOR_GREY, "(INFO)/armour./heal,/help,/setscore.!");
SendClientMessage(playerid, COLOR_GREY, "(INFO)/weaponstat,/tbrules,/banrules,/kill,/rules.!");
return 1;
}
return 0;
}
{
if (strcmp("/kill", cmdtext, true, 10) == 0)
{
SetPlayerHealth(playerid, 0);
SendClientMessage(playerid, COLOR_ORANGE, "(INFO)YOU HAVE COMMITED SUICIDE.!");
return 1;
}
if (strcmp("/rules", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, COLOR_ORANGE, "(INFO)1.Do not car park.!");
SendClientMessage(playerid, COLOR_ORANGE, "(INFO)2.Do not kill with heli blade.!");
SendClientMessage(playerid, COLOR_ORANGE, "(INFO)3.Do not kill players with armoured vehicle in spawn position.!");
SendClientMessage(playerid, COLOR_ORANGE, "(INFO)4.Do not disrespect players.!");
SendClientMessage(playerid, COLOR_ORANGE, "(INFO)5.Treat Everyone As Your Own Brother.!");
return 1;
}
if (strcmp("/help", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, COLOR_ORANGE, "(INFO)1.Welcome To Our Server.!");
SendClientMessage(playerid, COLOR_ORANGE, "(INFO)2.Use /cmds to know server commands.!");
return 1;
}
if (strcmp("/banrules", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, COLOR_ORANGE, "(INFO)1.Massive Spawnkill Can Cause Immediate Ban After 2 Kicks.!");
SendClientMessage(playerid, COLOR_ORANGE, "(INFO)2.Any Kind Of Cheating Will Lead You To An Immediate Ban.!");
SendClientMessage(playerid, COLOR_ORANGE, "(INFO)3.If You Are TempBanned If You Ban Evade Then It Will Lead You To Permanent Ban.!");
SendClientMessage(playerid, COLOR_ORANGE, "(INFO)4.If You Disrespect Player It Will Lead You To A Permanent Banned After 2 Kicks.!");
return 1;
}
if (strcmp("/tbrules", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, COLOR_ORANGE, "(INFO)1.TBrules mean Temporarily Ban Rules.!");
SendClientMessage(playerid, COLOR_ORANGE, "(INFO)2.Any Kind Of Rule Break Abuse Will Lead You To Be Tbanned.!");
SendClientMessage(playerid, COLOR_ORANGE, "(INFO)3.If You Are TempBanned If You Ban Evade Then It Will Lead You To Permanent Ban.!");
SendClientMessage(playerid, COLOR_ORANGE, "(INFO)4.If You Disrespect Player It Will Lead You To A Tban Banned After 3 Warns And A Tban Of 24 Hours.!");
SendClientMessage(playerid, COLOR_ORANGE, "(INFO)5.If You Are Banned And Always Evading It Will Lead You To Infinite Day TempBan.!");
return 1;
}
if (strcmp("/heal", cmdtext, true, 10) == 0)
{
SetPlayerHealth(playerid, 100);
SendClientMessage(playerid, COLOR_GREY, "(INFO)You Have Been Healed.!");
return 1;
}
if (strcmp("/armour", cmdtext, true, 10) == 0)
{
SetPlayerArmour(playerid, 100);
SendClientMessage(playerid, COLOR_GREY, "(INFO)You Have Been Armoured.!");
return 1;
}
if (strcmp("/weaponstat", cmdtext, true, 10) == 0)
{
GetPlayerAmmo(playerid);
SendClientMessage(playerid, COLOR_GREY, "(INFO)You Have Been Shoed Your Weapon Stat.!");
return 1;
}
if (strcmp("/setscore", cmdtext, true, 10) == 0)
{
SetPlayerScore(playerid, 10);
SendClientMessage(playerid, COLOR_GREY, "(INFO)Your Score Has Been Set By Administrator.!");
return 1;
}
if (strcmp("/cmds", cmdtext, true, 10) == 0)
This V1.0 is for new scripters ABOVE YOU CAN SEE THE COMMANDS JUST COPY PASTE IT AND IF YOU LIKE THE
COMMANDS PLEASE + REPUTATION POINT BECAUSE I NEED IT.
SendClientMessage(playerid, COLOR_GREY, "(INFO)/armour./heal,/help,/setscore.!");
SendClientMessage(playerid, COLOR_GREY, "(INFO)/weaponstat,/tbrules,/banrules,/kill,/rules.!");
return 1;
}
return 0;
}