08.08.2009, 09:29
hello all
i have found a car ownership filterscript but cannot add more cars, anyprtoblems you can see,plz say!!
i have found a car ownership filterscript but cannot add more cars, anyprtoblems you can see,plz say!!
Код:
#include <a_samp>
#define FILTERSCRIPT
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_RED 0xAA3333AA
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~VEHICLES~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
new Remington;
new Peonix;
new Infernus;
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~VEHICLES~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
public OnFilterScriptInit()
{
print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
print(" .:[ - - ]:.");
print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
Remington = CreateVehicle(534,2118.4443,1589.0137,10.5446,179.6832,1,1,50000);//Remington
Infernus = CreateVehicle(411,3916.3721,-1616.5399,1441.0558,88.1406,9,8,50000); // skyway 1
Infernus = CreateVehicle(411,3916.2415,-1620.9866,1441.0573,87.5992,6,1,50000); // skyway2
Pheonix = CreateVehicle(603,3915.8423,-1601.9835,1441.1615,88.9358,11,90,50000); // nix skyway 02
}
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(oldstate == PLAYER_STATE_ONFOOT)
{
if(newstate == PLAYER_STATE_DRIVER)
{
if(GetPlayerVehicleID(playerid) == Remington)
{
new PlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
if(strcmp(PlayerName, "Slash01", true) == 0)
{
}
else
{
RemovePlayerFromVehicle(playerid);
}
}
}
}
return 1;
}
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~END~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
public OnFilterScriptExit()
{
DestroyVehicle (Remington);
DestroyVehicle (Inferns);
DestroyVehicle (Infernus);
DestroyVehicle (Phoenix);
}

