03.08.2010, 11:10
first i do it
forward IsAGangCar2(carid);
then i do it
AddStaticVehicle(402,1248.7694,-803.7722,83.9723,180.5839,0,0); // YAKUZA
AddStaticVehicle(419,1254.5103,-804.0104,83.9380,179.4227,0,0); // YAKUZA
AddStaticVehicle(475,1243.2533,-803.4598,83.9430,180.1993,0,0); // YAKUZA
AddStaticVehicle(480,1242.6583,-811.7627,83.9183,267.9681,0,0); // YAKUZA
//-------------------------------------------------------------------------------------------
Then
public IsAGangCar2(carid)
{
if(carid == 402 || carid == 419 || carid == 475 || carid == 480)
{
return 1;
}
return 0;
}
and finaly
if(IsAGangCar2(newcar))
{
if(PlayerInfo[playerid][pLeader] == 6||PlayerInfo[playerid][pMember] == 6) { }
else {
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_GREY,"You don't have keys of this vehicle.");}
}
BUT ITS NOT WORKING CARS GOES TO SALE.
forward IsAGangCar2(carid);
then i do it
AddStaticVehicle(402,1248.7694,-803.7722,83.9723,180.5839,0,0); // YAKUZA
AddStaticVehicle(419,1254.5103,-804.0104,83.9380,179.4227,0,0); // YAKUZA
AddStaticVehicle(475,1243.2533,-803.4598,83.9430,180.1993,0,0); // YAKUZA
AddStaticVehicle(480,1242.6583,-811.7627,83.9183,267.9681,0,0); // YAKUZA
//-------------------------------------------------------------------------------------------
Then
public IsAGangCar2(carid)
{
if(carid == 402 || carid == 419 || carid == 475 || carid == 480)
{
return 1;
}
return 0;
}
and finaly
if(IsAGangCar2(newcar))
{
if(PlayerInfo[playerid][pLeader] == 6||PlayerInfo[playerid][pMember] == 6) { }
else {
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_GREY,"You don't have keys of this vehicle.");}
}
BUT ITS NOT WORKING CARS GOES TO SALE.