Bcommands -
Notis123 - 05.12.2011
Some people are bored to make just some easy commands
I wont call this a fliterscript but a tutorial which is a completed fliterscript
This "Fliterscrit/Tutorial" will give you some commands which you might be bored to make so i made them for you
Commands: /me, /reclass, /kill , /car, /heli, /boat, /bike, /plane, /healme /armourme /cmds
Starting the FS/Tut
Код:
// Comment
// Comment
// Comment
#include <a_samp>
#include <zcmd>
#include <sscanf2>
COMMAND:kill(playerid,params[])
{
new string[128];
new PlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid,PlayerName, sizeof(PlayerName));
format(string,sizeof(string), "I know %s..., sometimes life can be hard.", PlayerName);
SendClientMessage(playerid, COLOR_GREEN, string);
SetPlayerHealth(playerid, 0.0);
return 1;
}
COMMAND:me(playerid, params[])
{
new SenderName[MAX_PLAYER_NAME],string[128];
GetPlayerName(playerid,SenderName,sizeof(SenderName));
if(isnull(params)) return SendClientMessage(playerid, 0xFFFF00AA,"[ERROR]Usage: /me [action]");
format(string, sizeof(string), "*%s %s", SenderName, params);
SendClientMessageToAll( 0xFFFF00AA, string);
return 1;
}
COMMAND:reclass(playerid,params[])
{
ForceClassSelection(playerid);
SetPlayerHealth(playerid,0.0);
return 1;
}
COMMAND:cmds(playerid,params[])
{
SendClientMessage(playerid, 0xFFFF00AA, "Commands: /me - /kill - /reclass - /car - /boat - /heli - /plane - /bike /healme - /armourme
COMMAND:car(playerid,params[])
{
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
SendClientMessage(playerid,COLOR_GREEN,"Car Spawned");
CreateVehicle(411, X+4, Y, Z, 10, 0, 0, 100);
}
COMMAND:bike(playerid,params[])
{
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
SendClientMessage(playerid,COLOR_GREEN,"Bike Spawned");
CreateVehicle(522, X+4, Y, Z, 10, 0, 0, 100);
}
COMMAND:plane(playerid,params[])
{
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
SendClientMessage(playerid,COLOR_GREEN,"Plane Spawned");
CreateVehicle(520, X+4, Y, Z, 10, 0, 0, 100);
}
COMMAND:boat(playerid,params[])
{
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
SendClientMessage(playerid,COLOR_GREEN,"Boat Spawned");
CreateVehicle(452, X+4, Y, Z, 10, 0, 0, 100);
}
COMMAND:heli(playerid,params[])
{
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
SendClientMessage(playerid,COLOR_GREEN,"Heli Spawned");
CreateVehicle(487, X+4, Y, Z, 10, 0, 0, 100);
}
COMMAND:healme(playerid,params[])
{
SendClientMessage(playerid,COLOR_GREEN,"You healed your self");
SetPlayerHealth(playerid, 100);
}
COMMAND:armourme(playerid,params[])
{
if(PlayerInfo[playerid][VIP] == 1)
SendClientMessage(playerid,COLOR_GREEN,"You healed your self");
SetPlayerArmour(playerid, 100);
}
This is for Stunt servers etc... and others but car-bue
*Credits
Kostas (Helped me a time when i needed help with /me command)
Me ( creating the tutorial/fs)
****** (sscanf2)
Zeex (ZCMD command processor)
Haters and Lovers:
Haterzzzzzz hate it.
Loverzzzzzzzzzz love it.
Thanks i hope i helped some people!
Re: Bcommands -
NessaHD - 05.12.2011
Quote:
As i said dont call this an fs but a tutorial so ...
|
Why isn't it posted in the tutorials section then?
Re: Bcommands -
jaydon - 05.12.2011
Kind of usefull i guess, maybe make a v.2.0 put some more stuff could turn out good.
Re: Bcommands -
Notis123 - 06.12.2011
Quote:
Originally Posted by cruteX
Why isn't it posted in the tutorials section then?
|
In the tutorial section you're not giving a scrip;t done!
Re : Bcommands -
Naruto_Emilio - 06.12.2011
Sir improve your Pawn Knowledge and improve your Thread. cause it's useless. and by saying it's a tutorial, sir it's not, nothing is explained.. and even a Monkey can do this script.
Re: Bcommands -
NessaHD - 06.12.2011
Quote:
Originally Posted by Notis123
In the tutorial section you're not giving a scrip;t done!
|
You are explaining the lines? That means it isn't a gamemode, filterscript, include but a tutorial. You should explain it in parts, then you could completely call it a tutorial.
Re: Bcommands -
Notis123 - 06.12.2011
just remove this...
Respuesta: Bcommands -
[Nikk] - 06.12.2011
Very Nicee
Re: Bcommands -
Mr.Fames - 08.12.2011
OH for god sake people give him a second chance maybe this is his first time :P and about me good job but why didnt u release it as a filterscript ??
Re: Bcommands -
§с†¶e®РµРe - 08.12.2011
gj for first time
Re: Bcommands -
AceFlyer - 14.12.2011
You need to explain the lines what use is a tutorial when newbies dont know what exactly they are doing in every step.the point of tutorials is not making people Copy and paste stuff in thier script but actually making people learn from them
Re: Bcommands -
Gazmull - 14.12.2011
So..... uhmmmm..... I don't see special but I think this is your first time, well good job for learning pawn language. D: lol
Re: Bcommands -
§с†¶e®РµРe - 14.12.2011
Not bad for first thing
Re: Bcommands -
Notis123 - 14.12.2011
it isn't my first script
Re: Bcommands -
Max_Coldheart - 14.12.2011
Quote:
Originally Posted by cruteX
Why isn't it posted in the tutorials section then?
|
Because it isn't a tutorial either.