I'm new on SAMP
#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


Messages In This Thread
I'm new on SAMP - by MuhammadFajar - 30.08.2011, 09:52
Re: I'm new on SAMP - by =WoR=Varth - 30.08.2011, 09:56
Re: I'm new on SAMP - by Jafet_Macario - 30.08.2011, 09:59
Re: I'm new on SAMP - by MuhammadFajar - 30.08.2011, 13:58
Re: I'm new on SAMP - by Universal - 30.08.2011, 14:39
Re: I'm new on SAMP - by MuhammadFajar - 30.08.2011, 14:45
Re: I'm new on SAMP - by Universal - 30.08.2011, 19:08
Re: I'm new on SAMP - by MuhammadFajar - 30.08.2011, 23:35

Forum Jump:


Users browsing this thread: 2 Guest(s)