29.01.2016, 23:50
PHP код:
stock CheckChave(playerid, vehicleid)
{
new mot, lu, alar, por, cap, porma, ob;
GetVehicleParamsEx(vehicleid, mot, lu, alar, por, cap, porma, ob);
if(IsAAztecaCar(vehicleid)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Vocк nгo й dos Varriors Los Aztecas, por isso nгo tem a chave desse veiculo!");
SetVehicleParamsEx(vehicleid, VEHICLE_PARAMS_OFF, lu, alar, por, cap, porma, ob);
return 1;
}
else if(IsACopCar(vehicleid) || IsAPRCar(vehicleid) || IsABOPEsCar(vehicleid) || IsAPFCar(vehicleid) || IsAPCCar(vehicleid) || IsAGATCar(vehicleid))
{
if(!IsACopFCar(playerid))
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Vocк nгo й um Policial, por isso nгo tem a chave desse veiculo!");
SetVehicleParamsEx(vehicleid, VEHICLE_PARAMS_OFF, lu, alar, por, cap, porma, ob);
return 1;
}
}
return 1;
}