Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include " a_samp "
- #include " zcmd "
- new
- Float:PosX[ MAX_PLAYERS ] ,
- Float:PosY[ MAX_PLAYERS ] ,
- Float:PosZ[ MAX_PLAYERS ] ,
- Float:AngleZ[ MAX_PLAYERS ] = 0.0 ;
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------") ;
- print(" Save Loads by TheDucc") ;
- print("--------------------------------------\n") ;
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #else
- main()
- {
- print("\n----------------------------------") ;
- print(" Blank Gamemode by your name here") ;
- print("----------------------------------\n") ;
- }
- #endif
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- #define SaveLoads 1568
- if(dialogid == SaveLoads)
- {
- if(response)
- {
- if(listitem == 0)
- {
- if(IsPlayerInAnyVehicle( playerid ))
- {
- new
- VehicleID ;
- VehicleID = GetPlayerVehicleID( playerid ) ;
- GetVehiclePos( VehicleID, PosX[ playerid ], PosY[ playerid ], PosZ[ playerid ]) ;
- GetVehicleZAngle( VehicleID, AngleZ[ playerid ]) ;
- }
- else
- {
- GetPlayerPos( playerid, PosX[ playerid ], PosY[ playerid ], PosZ[ playerid ]) ;
- GetPlayerFacingAngle( playerid, AngleZ[ playerid ]) ;
- }
- }
- if(listitem == 1)
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- new
- VehicleID = GetPlayerVehicleID( playerid ) ;
- SetVehiclePos( VehicleID, PosX[ playerid ], PosY[ playerid ], PosZ[ playerid ]) ;
- SetVehicleZAngle( VehicleID, AngleZ[ playerid ]) ;
- }
- else
- {
- SetPlayerPos( playerid , PosX[ playerid ], PosY[ playerid ], PosZ[ playerid ]) ;
- SetPlayerFacingAngle( playerid, AngleZ[ playerid ]) ;
- }
- }
- }
- }
- return ( true );
- }
- CMD:s(playerid, params[])
- {
- #define Color "{F81414}"
- #define Color2 "{FFFFFF}"
- ShowPlayerDialog(playerid, SaveLoads, DIALOG_STYLE_LIST, ""Color"S"Color2"ave / "Color"L"Color2"oad",""Color"S"Color2"ave Position\n"Color"L"Color2"oad Position","Select", "Cancel");
- return ( true ) ;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement