[FilterScript] Gunpack System
#1

Hello Sa-mp Community

I'm Producing my Gunpack Filter Script which can be Used in Cops 'n' Robbers

Details:

Gunpack3: /gpack3 > 2000 Score to Use it Weapons are in Gunpack3

Swan-Off || Ammo - 100
Chainsaw || Ammo - 9999
Deagle || Ammo - 50
Sniper-Rifle || Ammo - 200
Grenade || Ammo - 16
M4 || Ammo - 300
Paracute || Ammo - 5
Fire Extinguisher || Ammo - 500"
Tec-9 || Ammo - 200

Gunpack2: /gpack2 > 1000 Score to Use it Weapons are in Gunpack2

Pool Cue || Ammo - 9999
Silenced 9mm || Ammo - 250
CombatShoutGun || Ammo - 500
AK-47 || Ammo - 470
Spraycan || Ammo - 500

Gunpack1: /gpack1 > 500 Score to Use it Weapons are in Gunpack1

MP5 || Ammo - 350
Shotgun || Ammo - 250
Knife || Ammo - 9999

Commands:

/gpack1 >500 Score

/gpack2 >1000 Score

/gpack3 >2000 Score

If you want to change Gunpacks Score Do this


pawn Code:
if(GetPlayerScore(playerid) < 500) return SendClientMessage(playerid, COLOR_RED, "ERROR:You Don't Have 300 Score To Use /Gpack1");
Then How to Change it


pawn Code:
if(GetPlayerScore(playerid) < Change this to Any Score u want) return SendClientMessage(playerid, COLOR_RED, "ERROR:You Don't Have 300 Score To Use /Gpack1");
if u Changed it an Example:


pawn Code:
if(GetPlayerScore(playerid) < 9999) return SendClientMessage(playerid, COLOR_RED, "ERROR:You Don't Have 300 Score To Use /Gpack1");
This Was Only An Example How to Change the Score as u want to do

Download Link!


Code:
/****************************************
|				NoFeAr					|
|		  Extreme Weapon system			|
****************************************/

#include <a_samp>
#include <zcmd>

#define COLOR_RED 0xFF0000
#define COLOR_BLACK 0x000000
#define COLOR_GREEN 0x00FF00

public OnFilterScriptInit()
{
	print("\n--------------------------------------");
	print(" Extreme Weapon system by NoFeAr loaded ");
	print("--------------------------------------\n");
	return 1;
}

CMD:gpack3(playerid, params[])
{
    if(GetPlayerScore(playerid) < 2000) return SendClientMessage(playerid, COLOR_RED, "ERROR:You Don't Have 2000 Score To Use /Gpack3");
    GivePlayerWeapon(playerid, 9, 9999);
    GivePlayerWeapon(playerid, 24, 50);
    GivePlayerWeapon(playerid, 26, 100);
    GivePlayerWeapon(playerid, 32, 200);
    GivePlayerWeapon(playerid, 31, 300);
    GivePlayerWeapon(playerid, 34, 200);
    GivePlayerWeapon(playerid, 46, 5);
    GivePlayerWeapon(playerid, 42, 500);
    GivePlayerWeapon(playerid, 16, 10);
    SendClientMessage(playerid, COLOR_GREEN, "You Have Succesfully Got Gunpack3 Weapon Are:");
    SendClientMessage(playerid, COLOR_BLACK, "Swan-Off || Ammo - 100");
    SendClientMessage(playerid, COLOR_BLACK, "Chainsaw || Ammo - 9999");
    SendClientMessage(playerid, COLOR_BLACK, "Deagle || Ammo - 50 ");
    SendClientMessage(playerid, COLOR_BLACK, "Sniper-Rifle || Ammo - 200");
    SendClientMessage(playerid, COLOR_BLACK, "Grenade || Ammo - 16");
    SendClientMessage(playerid, COLOR_BLACK, "M4 || Ammo - 300");
    SendClientMessage(playerid, COLOR_BLACK, "Paracute Ammo - 5");
    SendClientMessage(playerid, COLOR_BLACK, "Fire Extinguisher || Ammo - 500");
    SendClientMessage(playerid, COLOR_BLACK, "Tec-9 || Ammo - 200");
	return 1;
}
CMD:gpack2(playerid, params[])
{
    if(GetPlayerScore(playerid) < 1000) return SendClientMessage(playerid, COLOR_RED, "ERROR:You Don't Have 550 Score To Use /Gpack2");
    GivePlayerWeapon(playerid, 7, 9999);
    GivePlayerWeapon(playerid, 23, 250);
    GivePlayerWeapon(playerid, 27, 500);
    GivePlayerWeapon(playerid, 30, 470);
    GivePlayerWeapon(playerid, 41, 500);
    SendClientMessage(playerid, COLOR_GREEN, "You Have Succesfully Used /Gpack2 Weapon Are:");
    SendClientMessage(playerid, COLOR_BLACK, "Pool Cue || Ammo - 9999");
    SendClientMessage(playerid, COLOR_BLACK, "Silenced 9mm || Ammo - 250");
    SendClientMessage(playerid, COLOR_BLACK, "CombatShoutGun || Ammo - 500");
    SendClientMessage(playerid, COLOR_BLACK, "AK-47 || Ammo - 470");
    SendClientMessage(playerid, COLOR_BLACK, "Spraycan || Ammo - 500");
	return 1;
}
CMD:gpack1(playerid, params[])
{
    if(GetPlayerScore(playerid) < 500) return SendClientMessage(playerid, COLOR_RED, "ERROR:You Don't Have 300 Score To Use /Gpack1");
    GivePlayerWeapon(playerid, 29, 350);
    GivePlayerWeapon(playerid, 25, 250);
    GivePlayerWeapon(playerid, 4, 9999);
    SendClientMessage(playerid, COLOR_GREEN, "You Have Succesfully Used /Gpack1 Weapon Are:");
    SendClientMessage(playerid, COLOR_BLACK, "MP5 || Ammo - 350");
    SendClientMessage(playerid, COLOR_BLACK, "Shotgun || Ammo - 250");
    SendClientMessage(playerid, COLOR_BLACK, "Knife || Ammo - 9999");
    return 1;
}
Reply
#2

Woooooooooooow!!!! I am going to add it in my server!!! AWESOME!!!!
Reply
#3

Quote:
Originally Posted by Ninad
View Post
Woooooooooooow!!!! I am going to add it in my server!!! AWESOME!!!!
Thanks Hope ur Players Like it xD Any More Comments
Reply
#4

Nice filterscript +1 rep
Reply
#5

You do it wrong next time you must to use ZCMD out of OnPlayerCommandText...

I have fixed the most of filterscript for you...

Anyway Nice! ...
Reply
#6

Quote:
Originally Posted by Crisis
View Post
Nice filterscript +1 rep
Thanks Anymore comments
Reply
#7

Not really the best tutorial.
You forgot to edit the text.
For an example:
if(GetPlayerScore(playerid) < 9999) return SendClientMessage(playerid, COLOR_RED, "ERROR:You Don't Have 300 Score To Use /Gpack1");
It wouldn't make sense if the player has let's say 9998 score and it suddenly says "You don't have 300 score ...."
Reply
#8

Simple but nice, good job!
Reply
#9

Useful code, but Good job
Reply
#10

Quote:
Originally Posted by Kyance
View Post
Not really the best tutorial.
You forgot to edit the text.
For an example:
if(GetPlayerScore(playerid) < 9999) return SendClientMessage(playerid, COLOR_RED, "ERROR:You Don't Have 300 Score To Use /Gpack1");
It wouldn't make sense if the player has let's say 9998 score and it suddenly says "You don't have 300 score ...."
It's Not Tutorial it Just a example i did not did it in real But thanks for the Info

Quote:
Originally Posted by PT
View Post
Useful code, but Good job
Quote:
Originally Posted by n0minal
View Post
Simple but nice, good job!
Thanks
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)