Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. if( PRESSED( KEY_SPRINT ) )
  2. {
  3. if( GetPlayerState( playerid ) == PLAYER_STATE_DRIVER )
  4. {
  5. if( GTMODE[ GetPlayerVehicleID( playerid ) ] == true )
  6. {
  7. new Float:sXxx,Float:sYxx,Float:SZxx;
  8. GetVehicleVelocity( GetPlayerVehicleID( playerid ),sXxx,sYxx,SZxx);
  9. SetVehicleVelocity( GetPlayerVehicleID( playerid ),sXxx*1.2,sYxx*1.2,SZxx*1.2);
  10. }
  11. }
  12. }
  13.  
  14. CMD:gt(playerid,params[])
  15. {
  16. if( PlayerDB[ playerid ][adminlvl] == 5)
  17. {
  18. if( !IsPlayerInAnyVehicle( playerid ) ) return SendClientMessage( playerid, RAUDONA,"* Turi buti maðinoje!");
  19. if( GetPlayerState( playerid ) != PLAYER_STATE_DRIVER ) return SendClientMessage( playerid, RAUDONA,"* Turi buti maðinoje, kaip vairuotojas.");
  20.  
  21. if( GTMODE[ GetPlayerVehicleID( playerid ) ] == false )
  22. {
  23. GTMODE[ GetPlayerVehicleID( playerid ) ] = true;
  24. SendClientMessage( playerid, MELYNA,"* GT uþdëtas.");
  25. return 1;
  26. }
  27. else
  28. {
  29. GTMODE[ GetPlayerVehicleID( playerid ) ] = false;
  30. SendClientMessage( playerid, RAUDONA,"* GT nuimtas.");
  31. }
  32. }
  33. return 1;
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement