pawn Код:
#include <a_samp>
#pragma tabsize 0
new drugs;
new atm1;
new atm2;
new airportfuel;
new cityhall;
new bank;
new refuel1;
new refuel2;
new refuel3;
new refuel4;
new spawnweapon;
new sultan;
new jester;
new unjail;
#define COLOR_YELLOW 0xFFFF00AA
public OnFilterScriptInit ()
{
drugs = CreatePickup(1239, 23, -77.2920,-1136.5231,1.0781, -1); //Drugs
airportfuel = CreatePickup(1318, 23, 1962.7522,-2531.1218,14.1062, -1); //airport fuel
cityhall = CreatePickup(1239, 23, 246.5611,118.3800,1003.2188, -1); //city-hall pickup
refuel1 = CreatePickup(1239, 23, 1939.7303,-1775.3781,13.3906, -1); //gas station refuel 1
refuel2 = CreatePickup(1239, 23, 1943.4105,-1773.6899,13.3906, -1); //gas station refuel 2
refuel3 = CreatePickup(1239, 23, 1003.3679,-938.5247,42.1797, -1); //gas station refuel 3
refuel4 = CreatePickup(1239, 23, 1003.9102,-934.4974,42.1797, -1); //gas station refuel 4
bank = CreatePickup(1239, 23, 364.1431,173.7478,1008.3828, -1); //bank pickup
spawnweapon = CreatePickup(1239, 23, 295.7432,-38.2643,1001.5156, -1); //Ammu Nation spawn guns
sultan = CreateVehicle(560,1248.9774,-803.8253,83.8458,178.0372,-1,-1,-1); // Speedy sultan
jester = CreateVehicle(559,1242.7454,-803.8942,83.7970,179.3804,60,-1,-1);
unjail = CreatePickup(1239, 23, 236.0397,167.3625,1003.0300, -1); //LSPD unjail
atm1 = CreatePickup(1239, 23, 1491.6703,-1010.9481,26.8438, -1); //city-hall pickup
atm2 = CreatePickup(1239, 23, 600.8743,-1248.4067,18.3785, -1); //city-hall pickup
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == drugs)
{
GameTextForPlayer(playerid, "asfg", 5000, 3);
}
if(pickupid == atm1)
{
GameTextForPlayer(playerid, "~r~ATM", 5000, 3);
}
if(pickupid == atm2)
{
GameTextForPlayer(playerid, "~r~ATM", 5000, 3);
}
if(pickupid == airportfuel)
{
GameTextForPlayer(playerid, "~w~Command : ~g~/refuel", 5000, 3);
}
if(pickupid == cityhall)
{
GameTextForPlayer(playerid, "~w~Command : ~r~/buylicense", 5000, 3);
}
if(pickupid == bank)
{
GameTextForPlayer(playerid, "~w~Command : ~r~/bankhelp", 5000, 3);
}
if(pickupid == refuel1)
{
GameTextForPlayer(playerid, "~w~Command : ~g~/refuel", 5000, 3);
}
if(pickupid == refuel2)
{
GameTextForPlayer(playerid, "~w~Command : ~g~/refuel", 5000, 3);
}
if(pickupid == refuel3)
{
GameTextForPlayer(playerid, "~w~Command : ~g~/refuel", 5000, 3);
}
if(pickupid == refuel4)
{
GameTextForPlayer(playerid, "~w~Command : ~g~/refuel", 5000, 3);
}
if(pickupid == spawnweapon)
{
GameTextForPlayer(playerid, "~w~Command : ~r~/buyweapon", 5000, 3);
}
if(pickupid == unjail)
{
GameTextForPlayer(playerid, "Here you can unjail your arrested suspect.Make sure you got a strong reason for that.", 5000, 3);
}
return 1;
}
public OnGameModeInit()
{
//atm
CreateObject(2942, 1491.636475, -1009.896179, 26.486649, 0.0000, 0.0000, 0.0000);
CreateObject(2942, 601.256104, -1249.321289, 18.068634, 0.0000, 0.0000, 202.5001);
//LSPD Base
CreateObject(985, 1541.817993, -1620.781616, 14.265229, 0.0000, 0.0000, 123.7499);
CreateObject(986, 1545.722778, -1635.718506, 14.264785, 0.0000, 0.0000, 90.0000);
//Speedy Sultan , Jester
AddVehicleComponent(sultan,1028);
AddVehicleComponent(sultan,1169);
AddVehicleComponent(sultan,1141);
AddVehicleComponent(sultan,1138);
AddVehicleComponent(sultan,1026); //sideskirts
AddVehicleComponent(sultan,1027); //sideskirts
AddVehicleComponent(sultan,1080); //wheels
AddVehicleComponent(sultan,1086); //bass
AddVehicleComponent(sultan,1010); //nitro
AddVehicleComponent(sultan,1087); //hydraulics
ChangeVehiclePaintjob(sultan,0);
ChangeVehicleColor(sultan,86,3);
AddVehicleComponent(jester,1066);
AddVehicleComponent(jester,1068);
AddVehicleComponent(jester,1070);
AddVehicleComponent(jester,1072);
AddVehicleComponent(jester,1173);
AddVehicleComponent(jester,1161); //sideskirts
AddVehicleComponent(jester,1158); //sideskirts
AddVehicleComponent(jester,1080); //wheels
AddVehicleComponent(jester,1086); //bass
AddVehicleComponent(jester,1010); //nitro
AddVehicleComponent(jester,1087); //hydraulics
ChangeVehiclePaintjob(jester,0);
ChangeVehicleColor(jester,86,3);
return 0;
}