20.03.2012, 21:42
(
Последний раз редактировалось Lordzy; 03.01.2014 в 16:53.
)
Hi Guys This Is My First Script Ever.
EASY WEAPON
Commands
/ammo >> To See A List Of Weapon Commands
/ak47
/m4
/crifle
/sniper
/mp5
/tec9
/uzi
/shotgun
/cshotgun
/swanoff
/knife
/katana
/pistol
/spistol
/deagle
/grenade
/moltov
Download
Pastebin
Script
================================================== =====================================
Easy Weapon By [xB]Lordz
================================================== =====================================
Please Repute Me If U Like This Script.
If You Find Any Trouble With Bugs Please PM Or Post It Here.
---------------------------------------------------------------------------------------------------------------
03-01-2014:
Well yeah, this is my first ever script created for SA-MP. A user named "sniperwars" have submitted a link years ago however at that time I always thought of updating this script. Unfortunately, I had no PC at that time and postponed, but now, I'm no longer working into this. A much more better version, I credit sniperwars for it.
http://pastebin.com/JvMc0DeX
However, the v1 can be implemented to spawn weapons quickly.
EASY WEAPON
Commands
/ammo >> To See A List Of Weapon Commands
/ak47
/m4
/crifle
/sniper
/mp5
/tec9
/uzi
/shotgun
/cshotgun
/swanoff
/knife
/katana
/pistol
/spistol
/deagle
/grenade
/moltov
Download
Pastebin
Script
pawn Код:
/*
==========================================================================================================================
==========================================================================================================================
Copyright © , EasyWeapon™
__________________________________________________________________________________________________________________________
-------------------------- Easy Weapon v1.0 BETA -----------------------------
__________________________________________________________________________________________________________________________
==========================================================================================================================
==========================================================================================================================
My First Script Ever.
I Hope You Guys Wont Change My Credits
*/
#define FILTERSCRIPT
#include <a_samp>
#if defined FILTERSCRIPT
#pragma tabsize 0
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Easy Weapon v1.0 Loading...");
print("--------------------------------------\n");
print(" 50% Loaded");
print(" 100% Loaded");
print("\n--------------------------------------------");
print(" Easy Weapon v1.0 By [xB]Lordz Loaded Successfully");
print("----------------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
#endif
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/ak47", cmdtext, true, 10) == 0)
{
GivePlayerWeapon(playerid,30,200);
GivePlayerMoney(playerid,-1000);
SendClientMessage(playerid, 0x33CCFFAA, "You have bought a AK-47 For $1000!");
return 1;
}
if (strcmp("/m4", cmdtext, true, 10) == 0)
{
GivePlayerWeapon(playerid,31,200);
GivePlayerMoney(playerid,-1000);
SendClientMessage(playerid, 0x33CCFFAA, "You have bought a M4 For $1000!");
}
if (strcmp("/crifle", cmdtext, true, 10) == 0)
{
GivePlayerWeapon(playerid,33,75);
GivePlayerMoney(playerid,-1200);
SendClientMessage(playerid, 0x33CCFFAA, "You have bought a Country-Rifle For $1200!");
return 1;
}
if (strcmp("/sniper", cmdtext, true, 10) == 0)
{
GivePlayerWeapon(playerid,34,10);
GivePlayerMoney(playerid,-1800);
SendClientMessage(playerid, 0x33CCFFAA, "You have bought a Sniper-Rifle For $1800!");
}
if (strcmp("/mp5", cmdtext, true, 10) == 0)
{
GivePlayerWeapon(playerid,29,500);
GivePlayerMoney(playerid,-500);
SendClientMessage(playerid, 0x33CCFFAA, "You have bought a MP5 For $500!");
return 1;
}
if (strcmp("/tec9", cmdtext, true, 10) == 0)
{
GivePlayerWeapon(playerid,32,200);
GivePlayerMoney(playerid,-500);
SendClientMessage(playerid, 0x33CCFFAA, "You have bought a TEC-9 For $500!");
return 1;
}
if (strcmp("/uzi", cmdtext, true, 10) == 0)
{
GivePlayerWeapon(playerid,28,200);
GivePlayerMoney(playerid,-500);
SendClientMessage(playerid,0x33CCFFAA,"You Have Bought A Uzi For $500!");
return 1;
}
if (strcmp("/pistol", cmdtext, true, 10) == 0)
{
GivePlayerWeapon(playerid,22,200);
GivePlayerMoney(playerid,-200);
SendClientMessage(playerid,0x33CCFFAA,"You Have Bought A Pistol For $200!");
return 1;
}
if (strcmp("/spistol", cmdtext, true, 10) == 0)
{
GivePlayerWeapon(playerid,23,200);
GivePlayerMoney(playerid,-200);
SendClientMessage(playerid,0x33CCFFAA,"You Have Bought A Silenced-Pistol For $200!");
return 1;
}
if (strcmp("/deagle", cmdtext, true, 10) == 0)
{
GivePlayerWeapon(playerid,24,100);
GivePlayerMoney(playerid,-250);
SendClientMessage(playerid,0x33CCFFAA,"You Have Bought A Desert-Eagle For $250!");
return 1;
}
if (strcmp("/knife", cmdtext, true, 10) == 0)
{
GivePlayerWeapon(playerid,4,100);
GivePlayerMoney(playerid,-50);
SendClientMessage(playerid,0x33CCFFAA,"You Have Bought A Knife For $50!");
return 1;
}
if (strcmp("/katana", cmdtext, true, 10) == 0)
{
GivePlayerWeapon(playerid,8,100);
GivePlayerMoney(playerid,-100);
SendClientMessage(playerid,0x33CCFFAA,"You Have Bought A Katana For $100!");
return 1;
}
if (strcmp("/shotgun", cmdtext, true, 10) == 0)
{
GivePlayerWeapon(playerid,25,100);
GivePlayerMoney(playerid,-800);
SendClientMessage(playerid,0x33CCFFAA,"You Have Bought A Shotgun For $800!");
return 1;
}
if (strcmp("/cshotgun", cmdtext, true, 10) == 0)
{
GivePlayerWeapon(playerid,27,50);
GivePlayerMoney(playerid,-800);
SendClientMessage(playerid,0x33CCFFAA,"You Have Bought A Combat-ShotGun For $800!");
return 1;
}
if (strcmp("/swanoff", cmdtext, true, 10) == 0)
{
GivePlayerWeapon(playerid,26,100);
GivePlayerMoney(playerid,-800);
SendClientMessage(playerid,0x33CCFFAA,"You Have Bought A Swanoff-Sho Gun For $800!");
return 1;
}
if (strcmp("/grenade", cmdtext, true, 10) == 0)
{
GivePlayerWeapon(playerid,16 ,1);
GivePlayerMoney(playerid,-2000);
SendClientMessage(playerid,0x33CCFFAA,"You Have Bought A Grenade For $2000!");
}
if (strcmp("/moltov", cmdtext, true, 10) == 0)
{
GivePlayerWeapon(playerid,18,1);
GivePlayerMoney(playerid,-1500);
SendClientMessage(playerid,0x33CCFFAA,"You Have Bought A Moltov For $1500!");
}
if (strcmp("/ammo", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid,0x33FF33AA,"=====================================================================");
SendClientMessage(playerid,0x33FF33AA," Easy Weapon v1.");
SendClientMessage(playerid,0x33FF33AA,"=========================By [xB]Lordz====================================");
SendClientMessage(playerid,0xFF9900AA,"Rifles: /ak47 [$1000], /m4 [$1000], /crifle [$1200], /sniper [$1000]");
SendClientMessage(playerid,0xFF9900AA,"Sub-Machines: /tec9 [$500], /uzi [$500], /mp5 [$500]");
SendClientMessage(playerid,0xFF9900AA,"Pistols: /pistol [$200], /spistol [$200], /deagle [$250]");
SendClientMessage(playerid,0xFF9900AA,"Misc: /knife [$50], /katana [$100]");
SendClientMessage(playerid,0xFF9900AA,"Shotguns: /shotgun [$800], /cshotgun [$800], /swanoff [$800]");
SendClientMessage(playerid,0xFF9900AA,"Explosives: /grenade [$2000], /moltov [$1500]");
return 1;
}
return 0;
}
Easy Weapon By [xB]Lordz
================================================== =====================================
Please Repute Me If U Like This Script.
If You Find Any Trouble With Bugs Please PM Or Post It Here.
---------------------------------------------------------------------------------------------------------------
03-01-2014:
Well yeah, this is my first ever script created for SA-MP. A user named "sniperwars" have submitted a link years ago however at that time I always thought of updating this script. Unfortunately, I had no PC at that time and postponed, but now, I'm no longer working into this. A much more better version, I credit sniperwars for it.
http://pastebin.com/JvMc0DeX
However, the v1 can be implemented to spawn weapons quickly.