Problem with adding car. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Problem with adding car. (
/showthread.php?tid=241304)
Problem with adding car. -
GBLTeam - 17.03.2011
Hello all. When i add car only for one faction/gang cars which is for buying (/v buy) some of them is not for buying some is ... Whats the problem?
1.
pawn Код:
AddStaticVehicleEx(470,-928.83110000,-546.09480000,25.95040000,3.33760000,-1,-1,15); //230
AddStaticVehicleEx(470,-932.58120000,-546.00650000,25.99430000,6.28800000,-1,-1,15); //231
AddStaticVehicleEx(470,-947.61160000,-546.29790000,25.95160000,355.88090000,-1,-1,15); //232
AddStaticVehicleEx(470,-950.65860000,-546.07070000,25.95510000,352.76000000,-1,-1,15); //233
AddStaticVehicleEx(560,-953.98210000,-491.29550000,25.66540000,267.36790000,0,0,15); //234
AddStaticVehicleEx(560,-923.06830000,-492.55900000,25.66640000,253.30330000,0,0,15); //235
2.
pawn Код:
forward IsAGangCar7(carid);
3.
pawn Код:
public IsAGangCar7(carid)
{
if(carid >= 230 && carid <= 235)//KGB
{
return 1;
}
return 0;
}
4.
pawn Код:
if(IsAGangCar7(newcar))
{
if(PlayerInfo[playerid][pLeader] == 13||PlayerInfo[playerid][pMember] == 13) { }
else {
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_GREY,"Nemate kljuceve od ovog vozila.");}
}
5. Changing 230 to 236 (because i add 6 cars) and changing 550 to 556.
pawn Код:
public IsAnOwnableCar(vehicleid)
{
if(vehicleid >= 230 && vehicleid <= 550) { return 1; }
return 0;
}
Re: Problem with adding car. -
GBLTeam - 17.03.2011
anyone to help me really i need this..
Re: Problem with adding car. -
Markx - 17.03.2011
Evo ti jedan TuT
ovdje
Re: Problem with adding car. -
GBLTeam - 17.03.2011
Quote:
Originally Posted by Markx
|
i need tut like in gm adding not in fs.. look up how to fix that