Faction Vehicle issue Stocks! - 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)
+--- Thread: Faction Vehicle issue Stocks! (
/showthread.php?tid=443743)
Faction Vehicle issue Stocks! -
OpticKiller - 13.06.2013
Hello there i am wanting to use both of them below as i have a MDC system well am using stock IsACopCar (carid)
and also stock IsACopCar(playerid) the issue am having is if i remove the (carid) stock it lets everyone get inside the LSPD faction cars etc.
this is for the faction vehicles but when i remove it players can get in the vehicles without being invited. any ideas how i can use both of them without having to remove one
Код:
stock IsACopCar(carid)
{
for(new v = 0; v < sizeof(LSPDVeh); v++)
{
if(carid == LSPDVeh[v]) return 1;
}
return 0;
}
this is for the mdc
Код:
stock IsACopCar(playerid)
{
if(!IsPlayerInAnyVehicle(playerid)) return false;
new pvid = GetPlayerVehicleID(playerid);
new pvmodel = GetVehicleModel(pvid);
switch(pvmodel)
{
case 596..599: return true;
case 528, 427, 490: return true;
default: return false;
}
return false;
}
Re: Faction Vehicle issue Stocks! -
feartonyb - 13.06.2013
Just rename first stock to IsACopVehicle
Re: Faction Vehicle issue Stocks! -
OpticKiller - 13.06.2013
if i rename will it still connect to the vehicles etc.