[FilterScript] Bcommands
#1

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!
Reply
#2

Quote:

As i said dont call this an fs but a tutorial so ...

Why isn't it posted in the tutorials section then?
Reply
#3

Kind of usefull i guess, maybe make a v.2.0 put some more stuff could turn out good.
Reply
#4

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!
Reply
#5

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.
Reply
#6

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.
Reply
#7

just remove this...
Reply
#8

Very Nicee
Reply
#9

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 ??
Reply
#10

gj for first time
Reply
#11

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
Reply
#12

So..... uhmmmm..... I don't see special but I think this is your first time, well good job for learning pawn language. D: lol
Reply
#13

Not bad for first thing
Reply
#14

it isn't my first script
Reply
#15

Quote:
Originally Posted by cruteX
Посмотреть сообщение
Why isn't it posted in the tutorials section then?
Because it isn't a tutorial either.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)