onPlayerSpawn - Problem
#1

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:
PHP код:
    new Float:RandomSpawns[][] =
    {
    {
2465.0735642.2572510.2229, -178.3201},
    {
2473.2390642.3260510.2229, -178.3201},
    {
2481.1179642.3678510.2229, -178.3201},
    {
2489.3904642.3683510.2229, -178.3201},
    {
2497.3645642.5823510.2229, -178.3201}
    }; 
its under OnPlayerSpawn
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(playeridnrg0); 
Reply
#2

Try putting the player in the vehicle before adjust the Z angle.
Reply
#3

fixed! thanks
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)