Quick help
#1

Hi, this is the second time that i need help today, i have a bug , i'am scripting a First person driving system , but when i do the command to activate this mod , the cordinations of the camera is false.

PHP код:
stock StartFPS(playerid)
{
    new 
vehicleid GetPlayerVehicleID(playerid);
    
FirstPersonObject[playerid] = CreateObject(1930040.00.00.00.00.00.0);
    if(
vehicleid == VehicleRoadTrain || vehicleid == VehicleLineRunner || vehicleid == 443) return AttachObjectToVehicle(FirstPersonObject[playerid], vehicleid, -0.5399991.6399980.6699990.0000000.0000000.000000);
    else if(
vehicleid == VehicleTanker) return AttachObjectToVehicle(FirstPersonObject[playerid], vehicleid, -0.4449991.7999980.6999990.0000000.0000000.000000);
    else if(
vehicleid == VehicleFlatbed) return AttachObjectToVehicle(FirstPersonObject[playerid], vehicleid, -0.4999991.3949981.1349990.0000000.0000000.000000); 
    else if(
vehicleid == VehicleDFT30) return AttachObjectToVehicle(FirstPersonObject[playerid], vehicleid, -0.4949993.7300370.6099990.0000000.0000000.000000);
    else if(
vehicleid == 522 || vehicleid == 521 || vehicleid == 523 || vehicleid == 509 || vehicleid == 510 || vehicleid == 481 || vehicleid == 581) return AttachObjectToVehicle(FirstPersonObject[playerid], vehicleid0.0000000.2999990.7199990.0000000.0000000.000000); 
    else if(
vehicleid == 468 || vehicleid == 471 ) return AttachObjectToVehicle(FirstPersonObject[playerid], vehicleid0.0000000.2999990.7199990.0000000.0000000.000000); 
    else if(
vehicleid == 519) return AttachObjectToVehicle(FirstPersonObject[playerid], vehicleid0.0000005.2950730.5149990.0000000.0000000.000000); 
    else if(
vehicleid == 577 || vehicleid == 592) return AttachObjectToVehicle(FirstPersonObject[playerid], vehicleid, -0.43999924.7138554.4100530.0000000.0000000.000000);
    else if(
vehicleid == VehicleCoach || vehicleid == 431) return AttachObjectToVehicle(FirstPersonObject[playerid], vehicleid0.0000000.0000000.0000000.0000000.0000000.000000);
    else  return 
AttachObjectToVehicle(FirstPersonObject[playerid], vehicleid, -0.519999, -0.2199990.3749990.0000000.0000000.000000);
    
AttachCameraToObject(playeridFirstPersonObject[playerid]);
    
FirstPerson[playerid] = 1;
    return 
1;

Reply
#2

problem resolved , small fail , i'am using vehicle id but it should be vehicle model lol ...
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)