20.10.2011, 12:12
hello,
can someone make a flip cmd for me with strcmp? i need it for my server XD
thnx
niels
can someone make a flip cmd for me with strcmp? i need it for my server XD
thnx
niels
if ( !strcmp( "/flip", cmdtext, true, 10) )
{
new
Float: P[ 4 ];
GetPlayerPos( playerid, P[ 0 ], P[ 1 ], P[ 2 ] );
GetVehicleZAngle( GetPlayerVehicleID( playerid ) , P[ 3 ]);
SetVehiclePos( GetPlayerVehicleID( playerid ), P[ 0 ], P[ 1 ], P[ 2 ] );
SetVehicleZAngle( GetPlayerVehicleID( playerid ), P[ 3 ] );
return true;
}
new playerstate = GetPlayerState(playerid);
if(playerstate == PLAYER_STATE_DRIVER)
{
new VehicleID,Float:B;
VehicleID = GetPlayerVehicleID(playerid);
GetVehicleZAngle(VehicleID,B);
SetVehicleZAngle(VehicleID,B);
}