PHP код:
#define P:: e_P_
enum e_Police {
P::model,
Float:P::x,
Float:P::y,
Float:P::z,
Float:P::a,
P::c1,
P::c2,
P::respawn
};
stock const PoliceCars[][e_Police] =
{
{598, 613.835, -597.2714, 16.9790, 270.8588, 0, 1, -1},
{598, 613.8523, -601.5485, 16.9765, 270.8588, 0, 1, -1}
};
stock CreatePoliceVehicles()
{
for(new i; i < sizeof(PoliceCars); i++)
{
CreateVehicle(PoliceCars[i][P::model], PoliceCars[i][P::x], PoliceCars[i][P::y], PoliceCars[i][P::z], PoliceCars[i][P::a], PoliceCars[i][P::c1], PoliceCars[i][P::c2], PoliceCars[i][P::respawn], 1);
}
return 1;
}