Jump to content

Simple Script [/spin]


sTaRxD_

Recommended Posts

                                                                                                            >> 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.. :))) <<

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.