13.01.2014, 22:47
(
Последний раз редактировалось SamBeast; 15.01.2014 в 20:51.
)
Hey, So I finished this today (im not gonna lie but I didn't test it %100 yet) and I would like to share this with you
Basically this is a system made for the Army & Military faction members in the RP server, it forces the Government Tax Vault to pay up the other military destroyed vehicles (like..... refunding the Military)
(You surely got to have a Tax Vault system in your script / mod)
This system makes the server more realistic + will make players drive more RPly. I hope you like it
+rep only if you liked it <3
and if you are willing to use it... Plz give credits to (SamBeast96)
Basically this is a system made for the Army & Military faction members in the RP server, it forces the Government Tax Vault to pay up the other military destroyed vehicles (like..... refunding the Military)
(You surely got to have a Tax Vault system in your script / mod)
This system makes the server more realistic + will make players drive more RPly. I hope you like it
pawn Код:
public OnCarDeath(vehicleid)
{
if(IsAnNGCar(vehicleid))
foreach(Player, i) // Defines Player ID
{
new employer[13];
new DCar;
new Model[592];
switch(vehicleid)
{
case 470: DCar = 1000000; //you can change these values (Destroyed Vehicle Cost, or how much will it withdraw from the Gov.Tax Vault).
case 433: DCar = 3000000;
case 432: DCar = 10000000;
case 425: DCar = 17000000;
case 487: DCar = 8000000;
case 520: DCar = 20000000;
case 563: DCar = 15000000;
case 592: DCar = 50000000;
}
switch(vehicleid)
{
case 470: Model = "Patriot"; //Vehicle models by ID, you can add w/e vehicle ID you need (make sure you edit the Model[] Array if you do)
case 433: Model = "Barracks";
case 432: Model = "Rhino Tank";
case 425: Model = "Hunter";
case 487: Model = "Maverrick";
case 520: Model = "Hydra Jet";
case 563: Model = "Black Hawk";
case 592: Model = "Andromada";
}
switch(i)
{
case 1: employer = "SWAT"; //Faction names
case 2: employer = "Black Ops";
case 3: employer = "F.F.L";
case 4: employer = "MRU";
case 7: employer = "U.S Marines";
case 11: employer = "U.S Army";
case 13: employer = "SEAL Team";
}
new Float: VP; //Vehicle Power (or lets say Health)
if(GetVehicleHealth(vehicleid, VP) == 0) //If the Vehicle's Health is Zero.........
{
new string[128];
Tax -= DCar; //In here, the Vehicle's cost will be taken from the Tax Vault.
SendClientMessageEx(i, COLOR_NG, " You have just destroyed your Duty Vehicle!");
format(string, sizeof(string), "Government paid %d to refund a new %s for %s", DCar, Model, employer);
SendClientMessageEx(i, COLOR_YELLOW, string);
}
}
return 1;
}
and if you are willing to use it... Plz give credits to (SamBeast96)