24.10.2011, 20:52
pawn Код:
enum cvInfo
{
cvDono[24],
cvModelo,
Float:cvSpawn_X,
Float:cVSpawn_Y,
Float:cVSpawn_Z,
cvCor1,
cvCor2,
cvID
}
static const CarrosVIP[][cvInfo] =
{
{"Nome_Sobrenome",451,{478.008209,-1171.653442,63.505199,188.740905},151,151},
{"Nome_Sobrenome",487,{454.678710,-1152.181884,68.754898,183.735305},0,151},
{"Nome_Sobrenome",519,{2087.705566,-2593.150878,14.468700,91.079200},0,0},
{"Nome_Sobrenome",470,{268.559600,-1790.210815,5.085499,268.374786},0,0}
.
.
.
}
public OnGameModeInit()
{
for(new i = 0; i<sizeof(CarrosVIP); i++)
{
CarrosVIP[i][cvID] = AddStaticVehicle(CarrosVIP[i][cvModelo],CarrosVIP[i], CarrosVIP[i][cvSpawn_X],CarrosVIP[i][cvSpawn_Y],CarrosVIP[i][cvSpawn_Z],CarrosVIP[i][cvCor1],CarrosVIP[i][cvCor2]);
}
return 0;
}