Help me please..
#1

Hello!
I have made a CP inside a RC shop.
If a player enter that cp, a menu will come in which players can spawn temp RC vehicles.
But when i choose a RC, the player position is not changing.
Look this code
pawn Код:
SetPlayerPos(playerid,-2245.7810,128.4958,35.3203);
                new Float:X,Float:Y,Float:Z,Float:Angle,LVehicleIDt;
                GetPlayerPos(playerid,X,Y,Z);
                GetPlayerFacingAngle(playerid,Angle);
                LVehicleIDt = CreateVehicle(564,X,Y,Z,Angle,1,-1,-1);
                PutPlayerInVehicle(playerid,LVehicleIDt,0);
                AddVehicleComponent(LVehicleIDt, 1028);
                AddVehicleComponent(LVehicleIDt, 1030);
                AddVehicleComponent(LVehicleIDt, 1031);
                AddVehicleComponent(LVehicleIDt, 1138);
                AddVehicleComponent(LVehicleIDt, 1140);
                AddVehicleComponent(LVehicleIDt, 1170);
                AddVehicleComponent(LVehicleIDt, 1028);
                AddVehicleComponent(LVehicleIDt, 1030);
                AddVehicleComponent(LVehicleIDt, 1031);
                AddVehicleComponent(LVehicleIDt, 1138);
                AddVehicleComponent(LVehicleIDt, 1140);
                AddVehicleComponent(LVehicleIDt, 1170);
                AddVehicleComponent(LVehicleIDt, 1080);
                AddVehicleComponent(LVehicleIDt, 1086);
                AddVehicleComponent(LVehicleIDt, 1087);
                AddVehicleComponent(LVehicleIDt, 1010);
                PlayerPlaySound(playerid,1133,0.0,0.0,0.0);
                ChangeVehiclePaintjob(LVehicleIDt,0);
                SetVehicleVirtualWorld(LVehicleIDt, GetPlayerVirtualWorld(playerid));
                LinkVehicleToInterior(LVehicleIDt, GetPlayerInterior(playerid));
You can see above i added SetPlayerPos(if player will choose a rc then their position will be change)
But their position is not changing.They spawn the RC in the shop itself.
How to fix it?
Reply
#2

well if thats that bit that dont work it is properly best to post the code that is meant to start that
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)