I'm new on SAMP
#1

I'm new on SAMP, and I just need some help,
How to coordinates object position ?
I want to make an object, but I don't know how to place object, to right place.
Please, help me!
Reply
#2

Do /save inside samp(ingame). The coordinate is saved inside your samp user file(My document\samp\I forgot the fle name
Reply
#3

Go to your desired position ingame, type /save then go to \Documents\GTA San Andreas User Files\SAMP\savedpoitions.txt And you have it there, then use:https://sampwiki.blast.hk/wiki/CreateObject
For more information: https://sampforum.blast.hk/showthread.php?tid=92
Reply
#4

Thank you so much!
Then how to rotate vehicle, or set camera position ?
Reply
#5

Quote:
Originally Posted by MuhammadFajar
Посмотреть сообщение
Thank you so much!
Then how to rotate vehicle, or set camera position ?
You can rotate the vehicle by using this function: SetVehicleZAngle
But There must be a player inside the vehicle, otherwise it wont work.
Reply
#6

Quote:

You can rotate the vehicle by using this function: SetVehicleZAngle
But There must be a player inside the vehicle, otherwise it wont work.

Please Explain to me
Reply
#7

Quote:
Originally Posted by MuhammadFajar
Посмотреть сообщение
Please Explain to me
Here's a simple command example:

In the:
pawn Код:
public OnGameModeInit()
Put this line:
pawn Код:
new gVehicle = CreateVehicle( 560, 40.0, 50.0, 60.0, 70.0, 0, 0, -1 ); // Change the position of X,Y,Z
And then under the:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
Put this:
pawn Код:
if( strcmp( cmdtext, "/rotate", true ) == 0 )
{
    new
        Float: tmpRot ,
        string[ 129 ] ;
   
    GetPlayerFacingAngle( playerid, tmpRot );
    SetVehicleZAngle( gVehicle, tmpRot );
   
    format( string, sizeof( string ), "You've rotated the vehicle to Z angle: %f.", tmpRot );
    SendClientMessage( playerid, -1, string );
   
    return 1;
}
Reply
#8

So, this is in-game command?
Nice, Thank you!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)