26.07.2012, 15:59
I found that many Role-Play gamemodes determine a vehicle is whether a cop car like this
and create a cop car like this
And my problem is how to use MySQL to create some cop cars?
Код:
public IsACopCar(carid)
{
for(new i = 0; i < sizeof(copcar); i++)
{
if(carid == copcar[i]) return 1;
}
return 0;
}
Код:
new copcar[37]; copcar[1] = AddStaticVehicleEx(596,1574.4703,-1710.9795,5.6115,0.4220, -1, -1, 30000); copcar[2] = AddStaticVehicleEx(596,1587.4816,-1710.3594,5.6104,358.9421,-1, -1, 30000); ......

