Jump to content
  • 0

Problema drift!


nhunor58

Question

Salutare toti!

Cand intru in checkpointul specializat unde pot folosi comanda /drift cand scriu acea comanda ma pune in masina elegy dar checkpointurile nu apar..

Comanda:[pawn]CMD:drift( playerid, params[ ] )

{

    if ( IsPlayerInAnyVehicle( playerid ) )

    return SendError( playerid, "Please exit the vehicle first" );

    for ( new i = 1; i < MAX_DRIFTS; i++ )

    if ( IsPlayerInDynamicRaceCP( playerid, drift_cp[ i ] ) )

    PlayerInfo[ playerid ][ Race_CP ] = i;

if ( PlayerInfo[ playerid ][ Race_CP ] == 0 || PlayerInfo[ playerid ][ Race_CP ] > 7 )

    return SendError( playerid, "You are not in any race checkpoint !" );

LoadDriftCheckpoints( PlayerInfo[ playerid ][ Race_CP ] );

CarSpawner( playerid, 562 );

SetVehicleVirtualWorld( GetPlayerVehicleID( playerid ), 1 );

SetPlayerVirtualWorld( playerid, 1 );

if ( Speeding[ playerid ] )

Speeding[ playerid ] = false;

if ( PlayerInfo[ playerid ][ Vup ] == 1 )

    PlayerInfo[ playerid ][ Vup ] = 0;

SetPlayerRaceCheckpoint( playerid, 0, Drift_Checkpoint[ PlayerInfo[ playerid ][ Race_CP ] ][ 1 ][ gfDrift_X ],

                                      Drift_Checkpoint[ PlayerInfo[ playerid ][ Race_CP ] ][ 1 ][ gfDrift_Y ],

                                      Drift_Checkpoint[ PlayerInfo[ playerid ][ Race_CP ] ][ 1 ][ gfDrift_Z ],

                                      Drift_Checkpoint[ PlayerInfo[ playerid ][ Race_CP ] ][ 2 ][ gfDrift_X ],

                                      Drift_Checkpoint[ PlayerInfo[ playerid ][ Race_CP ] ][ 2 ][ gfDrift_Y ],

                                      Drift_Checkpoint[ PlayerInfo[ playerid ][ Race_CP ] ][ 2 ][ gfDrift_Z ], 10.0 );

Announce( playerid, "~r~~h~GO!~n~~y~~h~GO!~n~~g~~h~GO!", 3000, 4 );

PlayerInfo[ playerid ][ ActionID ] = 13;

DriftTime[ playerid ] = GetTickCount( );

return 1;

}[/pawn]

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.