Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if( PRESSED( KEY_SPRINT ) )
- {
- if( GetPlayerState( playerid ) == PLAYER_STATE_DRIVER )
- {
- if( GTMODE[ GetPlayerVehicleID( playerid ) ] == true )
- {
- new Float:sXxx,Float:sYxx,Float:SZxx;
- GetVehicleVelocity( GetPlayerVehicleID( playerid ),sXxx,sYxx,SZxx);
- SetVehicleVelocity( GetPlayerVehicleID( playerid ),sXxx*1.2,sYxx*1.2,SZxx*1.2);
- }
- }
- }
- CMD:gt(playerid,params[])
- {
- if( PlayerDB[ playerid ][adminlvl] == 5)
- {
- if( !IsPlayerInAnyVehicle( playerid ) ) return SendClientMessage( playerid, RAUDONA,"* Turi buti maðinoje!");
- if( GetPlayerState( playerid ) != PLAYER_STATE_DRIVER ) return SendClientMessage( playerid, RAUDONA,"* Turi buti maðinoje, kaip vairuotojas.");
- if( GTMODE[ GetPlayerVehicleID( playerid ) ] == false )
- {
- GTMODE[ GetPlayerVehicleID( playerid ) ] = true;
- SendClientMessage( playerid, MELYNA,"* GT uþdëtas.");
- return 1;
- }
- else
- {
- GTMODE[ GetPlayerVehicleID( playerid ) ] = false;
- SendClientMessage( playerid, RAUDONA,"* GT nuimtas.");
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement