05.12.2011, 19:26
(
Последний раз редактировалось Notis123; 19.12.2011 в 19:46.
)
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
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!
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); }
*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!