All pastes #928189 Raw Edit

Untitled

public text v1 · immutable
·published 2008-03-04 21:24 UTC
rendered paste body
//MODIFY AMMO AND WEAPONS AT SPAWN AS MUCH AS YOU LIKE

#include <a_samp>
#define FILTERSCRIPT
#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
	print("-------------------------------------");
	print(" Dragons Multi Weapons Spawns Loaded ");
	print("-------------------------------------");
	return 1;
}

#endif

public OnPlayerSpawn(playerid)
{
	ResetPlayerWeapons(playerid);
//Hand
	new hand=random(2);
	if (hand==0) { GivePlayerWeapon(playerid, 0, 1); }
	else if (hand==1) { GivePlayerWeapon(playerid, 1, 1); }
//Hand2
	new hand2=random(8);
	if (hand2==0) { GivePlayerWeapon(playerid, 2, 1); }
	else if (hand2==1) { GivePlayerWeapon(playerid, 3, 1); }
	else if (hand2==2) { GivePlayerWeapon(playerid, 4, 1); }
	else if (hand2==3) { GivePlayerWeapon(playerid, 5, 1); }
	else if (hand2==4) { GivePlayerWeapon(playerid, 6, 1); }
	else if (hand2==5) { GivePlayerWeapon(playerid, 7, 1); }
	else if (hand2==6) { GivePlayerWeapon(playerid, 8, 1); }
	else if (hand2==7) { GivePlayerWeapon(playerid, 9, 1); }
//Other
	new other=random(6);
	if (other==0) { GivePlayerWeapon(playerid, 10, 1); }
	else if (other==1) { GivePlayerWeapon(playerid, 11, 1); }
	else if (other==2) { GivePlayerWeapon(playerid, 12, 1); }
	else if (other==3) { GivePlayerWeapon(playerid, 13, 1); }
	else if (other==4) { GivePlayerWeapon(playerid, 14, 1); }
	else if (other==5) { GivePlayerWeapon(playerid, 15, 1); }
//Thrown
	new thrown=random(3);
	if (thrown==0) { GivePlayerWeapon(playerid, 16, 10); }
	else if (thrown==1) { GivePlayerWeapon(playerid, 17, 10); }
	else if (thrown==2) { GivePlayerWeapon(playerid, 18, 10); }
//Pistol
	new pistol=random(3);
	if (pistol==0) { GivePlayerWeapon(playerid, 22, 100); }
	else if (pistol==1) { GivePlayerWeapon(playerid, 23, 100); }
	else if (pistol==2) { GivePlayerWeapon(playerid, 24, 100); }
//Shotgun
	new shotgun=random(3);
	if (shotgun==0) { GivePlayerWeapon(playerid, 25, 50); }
	else if (shotgun==1) { GivePlayerWeapon(playerid, 26, 50); }
	else if (shotgun==2) { GivePlayerWeapon(playerid, 27, 50); }
//SMG
	new smg=random(3);
	if (smg==0) { GivePlayerWeapon(playerid, 28, 500); }
	else if (smg==1) { GivePlayerWeapon(playerid, 29, 500); }
	else if (smg==2) { GivePlayerWeapon(playerid, 32, 500); }
//Assault
	new assault=random(2);
	if (assault==0) { GivePlayerWeapon(playerid, 30, 700); }
	else if (assault==1) { GivePlayerWeapon(playerid, 31, 700); }
//Rifle
	new rifle=random(2);
	if (rifle==0) { GivePlayerWeapon(playerid, 33, 50); }
	else if (rifle==1) { GivePlayerWeapon(playerid, 34, 50); }
//Heavy
	new heavy=random(4);
	if (heavy==0) { GivePlayerWeapon(playerid, 35, 1); }
	else if (heavy==1) { GivePlayerWeapon(playerid, 36, 1); }
	else if (heavy==2) { GivePlayerWeapon(playerid, 37, 50); }
	else if (heavy==3) { GivePlayerWeapon(playerid, 38, 50); }
//Other2
	new other2=random(3);
	if (other2==0) { GivePlayerWeapon(playerid, 41, 50); }
	else if (other2==1) { GivePlayerWeapon(playerid, 42, 50); }
	else if (other2==2) { GivePlayerWeapon(playerid, 43, 50); }
	return 1;
}