13.06.2013, 16:10
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
this is for the mdc
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; }
Код:
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; }