Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×

Recommended Posts

Posted

                                                                                                            >> Vehicle Rotate <<

                                                                                                                      >> /spin <<

>> V-am facut un fs simplu dar pentru unii e chiar "tare" sau "smecher" <<

>> Cu acest fs va puteti invarti cu masina de cate ori doriti apasand tasta Y <<

sa-mp-10.jpg

[img width=500 height=375] sa-mp-11.jpg

[pawn]//================

//================

#include <a_samp>

#include <zcmd>

#include <sscanf2>

//================

//================

new spin [ MAX_PLAYERS ] ;

//========Command's==========

CMD:spin ( id, params[]) {

new BigString[1900];

strcat(BigString, "{FFFFFF}Activate Spin\n{FFFFFF}Press {F81414}Activate {FFFFFF}to activate Spin Mode\n{FFFFFF}Press {F81414}Disable {FFFFFF}to disabled SpinMode", 1900 );

ShowPlayerDialog(id, 1, DIALOG_STYLE_MSGBOX, "{00B8F5}.::{FFFFFF}Spin{00B8F5}::. ",BigString, "Activate","Disable");

return 1; }

//=======Key=====

public OnPlayerKeyStateChange ( playerid , newkeys , oldkeys ) {

if ( newkeys & KEY_YES) {

if ( spin [ playerid ] == 1 ) {

if ( IsPlayerInAnyVehicle  (playerid ))

SetVehicleAngularVelocity ( GetPlayerVehicleID ( playerid ), 0.0, 0.0, 2.0); } } return 1; }

//=======Dialog=====

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])

{

if ( dialogid==1 ) {

if ( response ) {

spin[playerid] = 1;

GameTextForPlayer(playerid, "~w~Spin ~b~Activate~n~~w~Press ~b~Y ~w~to rotate", 4000, 3); }

else {

spin[playerid] = 0;

GameTextForPlayer(playerid, "~w~Spin ~b~Dezactivate", 4000, 3);  } } return 1; }

//========================================END===================================[/pawn]

>> Accept toate criticile posibile... si inventate.. :))) <<

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.