Faction Vehicle issue Stocks!
#1

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;
}
Reply
#2

Just rename first stock to IsACopVehicle
Reply
#3

if i rename will it still connect to the vehicles etc.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)