Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //******************************************************************************
- //
- // Maðinos sutvarkymo, atvertimo, spalvos pakeitimo bei paintjob uþsidëjimo sistema
- //
- // offerscripts.pwn, sukurë makayato.
- //
- //
- // Bet kokio tipo kopijavimas, tik árodys kad jûs esate kvailys :)
- //
- //******************************************************************************
- #include <a_samp>
- #include <zcmd>
- #include <sscanf>
- // **S palvos ** //
- #define COLOR_RED 0xCC0000AA
- #if defined FILESCRIPT
- public
- OnFilterScriptInit()
- {
- print ("\n------------------------------------------------------------- ");
- print (" ************************************************************** ");
- print (" Maðinos Spalvos, sutvarkymo, atvertimo bei Paint Job uþsidëjimo sistema
- print (" Sukurta pagal makayato ");
- print (" ************************************************************** ");
- print ("--------------------------------------------------------------- ");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #else
- #endif
- COMMAND:gflip( playerid, params[] )
- {
- new
- Float: coo[ 3 ],
- Float: Angle;
- if ( ! IsPlayerInAnyVehicle ( playerid ) ) return SendClientMessage ( playerid, COLOR_RED,"\
- KLAIDA, turite bûti maðinoje norit atversti maðinà ");
- GetPlayerPos ( playerid,
- Float:coo[ 0 ],
- coo[ 1 ],
- coo[ 2 ] );
- GetVehicleZAngle ( GetPlayerVehicleID ( playerid ), Angle );
- SetVehiclePos ( GetPlayerVehicleID ( playerid ),
- coo[ 0 ],
- coo[ 1 ],
- coo[ 2 ] +1 );
- SendClientMessage ( playerid, COLOR_RED," Maðina sëkmingai atversta. ");
- return true;
- }
- COMMAND:gcarcolor( playerid, params [] )
- {
- new
- gCarColor,
- tmpStr [ 128 ];
- if ( ! IsPlayerInAnyVehicle ( playerid ) ) return SendClientMessage ( playerid, COLOR_RED,"\
- KLAIDA, turite bûti maðinoje norit pasikeisti maðinos spalva. ");
- if ( sscanf( params, "d", gCarColor )) return SendClientMessage ( playerid, COLOR_RED,"\
- NAUDOJIMAS: {FFFFFF} /gcarcolor [spalvos id] ");
- if ( gCarColor < 0 || gCarColor > 255 ) return SendClientMessage ( playerid, COLOR_RED,"\
- KLAIDA!{FFFFFF} Spalvu pasirinkimas nuo 0 iki 255! ");
- else
- ChangeVehicleColor( GetPlayerVehicleID( playerid ), gCarColor, gCarColor );
- format ( tmpStr, 128,"Jûsu maðinos spalvà pasikeitë á {FFFFFF} %d ", gCarColor );
- SendClientMessage ( playerid, COLOR_RED, tmpStr );
- return true;
- }
- COMMAND:gcarfix( playerid, params[] )
- {
- new
- gVeh = GetPlayerVehicleID ( playerid );
- if ( ! IsPlayerInAnyVehicle ( playerid ) ) return SendClientMessage ( playerid, COLOR_RED,"\
- KLAIDA, turite bûti maðinoje norit pasikeisti maðinos spalva. ");
- RepairVehicle ( GetPlayerVehicleID ( playerid ) );
- SetVehicleHealth ( gVeh, 1000.0 );
- return true;
- }
- COMMAND:gcarpj( playerid, params[] )
- {
- if ( ! IsPlayerInAnyVehicle ( playerid ) ) return SendClientMessage ( playerid, COLOR_RED,"\
- KLAIDA, turite bûti maðinoje norit pasikeisti maðinos paintjob'a. ");
- if ( isnull ( params ) ) return SendClientMessage ( playerid, COLOR_RED,"\
- NAUDOJIMAS: {FFFFFF}/gcarpj [1-4] ");
- if ( strcmp ( params ,"1", true ) == 0 )
- {
- ChangeVehiclePaintjob( GetPlayerVehicleID ( playerid ), 1 );
- return true;
- }
- if ( strcmp ( params ,"2", true ) == 0 )
- {
- ChangeVehiclePaintjob( GetPlayerVehicleID ( playerid ), 1 );
- return true;
- }
- if ( strcmp ( params ,"3", true ) == 0 )
- {
- ChangeVehiclePaintjob( GetPlayerVehicleID ( playerid ), 3 );
- return true;
- }
- if ( strcmp ( params ,"4", true ) == 0 )
- {
- ChangeVehiclePaintjob( GetPlayerVehicleID ( playerid ), 4 );
- return true;
- }
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment