30.08.2011, 19:08
Here's a simple command example:
In the:
Put this line:
And then under the:
Put this:
In the:
pawn Код:
public OnGameModeInit()
pawn Код:
new gVehicle = CreateVehicle( 560, 40.0, 50.0, 60.0, 70.0, 0, 0, -1 ); // Change the position of X,Y,Z
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
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;
}