26.09.2015, 06:29
Hi, i don't know why this problem causing; look the images below first.
its like this when Player Spawn and gets into the vehicle:
i want the player and vehicle to be spawn like this:
CODES:
its under OnPlayerSpawn
its like this when Player Spawn and gets into the vehicle:
i want the player and vehicle to be spawn like this:
CODES:
PHP код:
new Float:RandomSpawns[][] =
{
{2465.0735, 642.2572, 510.2229, -178.3201},
{2473.2390, 642.3260, 510.2229, -178.3201},
{2481.1179, 642.3678, 510.2229, -178.3201},
{2489.3904, 642.3683, 510.2229, -178.3201},
{2497.3645, 642.5823, 510.2229, -178.3201}
};
PHP код:
new Random = random(sizeof(RandomSpawns));
new nrg = CreateVehicle(522,RandomSpawns[Random][0], RandomSpawns[Random][1], RandomSpawns[Random][2],0,-1,-1,-1);
SetVehicleZAngle(nrg,RandomSpawns[Random][3]);
PutPlayerInVehicle(playerid, nrg, 0);