Basic Commands:
Today i script an Basic commands for beginners it's good for DM Servers and Freeroam Servers, i hope you will like it, it's easy and basic one i just work on it 15 minutes.
You are free to edit it and change Crédits and you can change the Website on /Url Command
Code:
Code:
//*************************************************************************************//
// Super Basic Commands *
// TuNiSiE *
//*************************************************************************************
#include <a_samp>
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Basic Commands by TuNiSiE");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#endif
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/Kill", cmdtext, true, 10) == 0)
{
SetPlayerHealth(playerid,0); // Kill your self
return 1;
}
if (strcmp("/Wpack", cmdtext, true, 10) == 0)
{
GivePlayerWeapon(playerid,24,1000); // Give Player Deagle
GivePlayerWeapon(playerid,9,1); // Give Player Chainsaw
GivePlayerWeapon(playerid,25,1000); // Give Player Shotgun
GivePlayerWeapon(playerid,28,1000); // Give Player Micro SMG
GivePlayerWeapon(playerid,31,1000); // Give Player M4
return 1;
}
if (strcmp("/Rules", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid,0xFF0000FF,"Here you can find some Server Rules:");
SendClientMessage(playerid,0xFF0000FF,"- Do not Insult/Spam/Flood.");
SendClientMessage(playerid,0xFF0000FF,"- Respect all players/admins.");
SendClientMessage(playerid,0xFF0000FF,"- Do not talk about Website/Servers.");
SendClientMessage(playerid,0xFF0000FF,"- Do not abuse Bugs/Glitches.");
SendClientMessage(playerid,0xFF0000FF,"- Do not use any Hacks/Cheats/Celo mods.");
return 1;
}
if (strcmp("/Help", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid,0xFF0000FF,"Here you can find Server help:");
SendClientMessage(playerid,0xFF0000FF,"- Welcome to our server here!.");
SendClientMessage(playerid,0xFF0000FF,"- Here you free to deathmatch everyone!");
SendClientMessage(playerid,0xFF0000FF,"- Rule The Streets with your guns.");
SendClientMessage(playerid,0xFF0000FF,"- And have Fun with friends.");
SendClientMessage(playerid,0xFF0000FF,"- Enjoy your stay with us.");
return 1;
}
if (strcmp("/Cmds", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid,0xFF0000FF,"Here you can find Server Commands:");
SendClientMessage(playerid,0xFF0000FF,"- /Kill - Kill yourself.");
SendClientMessage(playerid,0xFF0000FF,"- /Wpack - Get a weapon pack.");
SendClientMessage(playerid,0xFF0000FF,"- /Help - Read server Help.");
SendClientMessage(playerid,0xFF0000FF,"- /Rules - Read server Rules.");
SendClientMessage(playerid,0xFF0000FF,"- /Url - Server Website.");
return 1;
}
if (strcmp("/Url", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid,0xFF0000FF,"URL: www.samp.com ");
return 1;
}
return 0;
}
How to install?:
- Open Pawno
- Make a new Page
- Copy the Code
- Paste it on your new page
- Save it with name " Bcmds "
- Go to your server.cfg
- Add " Bcmds " to Filterscripts
- And have Fun!
This is my first FS I hope you like it!