[FilterScript] Simple Script [/spin]
#1

Well not much to say at this script..

Imade ​​a script boredom .. is called spin .. by using the command / spin You will see a menu of activities and Disable
When you're in a car and press Y to turn a car ..





You can take away

pawn Code:
//================
//================
#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===================================
Sorry for my English language

So do not throw (tomatoes, cucumbers or critical gave me) that anyone could create something boring stuff .. )))
Reply


Messages In This Thread
Simple Script [/spin] - by (SC)=Sky= - 09.06.2013, 14:07
Re: Simple Script [/spin] - by Jason_Dealley - 09.06.2013, 14:16
Re: Simple Script [/spin] - by Smokkr - 09.06.2013, 14:17
Re: Simple Script [/spin] - by (SC)=Sky= - 09.06.2013, 14:18
Re: Simple Script [/spin] - by [UG]Daniel - 09.06.2013, 16:16
Re: Simple Script [/spin] - by admantis - 09.06.2013, 19:49
Re: Simple Script [/spin] - by (SC)=Sky= - 10.06.2013, 04:55
Re: Simple Script [/spin] - by XtremeR - 10.06.2013, 23:49
Re: Simple Script [/spin] - by (SC)=Sky= - 12.06.2013, 15:05

Forum Jump:


Users browsing this thread: 2 Guest(s)