Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- /*
- ����Anim-Master (BETA)����
- ����This is the beta of the animation menu����
- ����Please note that this is a beta not everything is done
- ����Credits: Pwnzor ,Donny for this amazing menu����
- ����
- ��Last Updated Nov,8,2009��
- */
- //#define IGNORE_SPAWN_MESSAGES //uncomment #define IGNORE_SPAWN_MESSAGES if you would like to stop it from saying anything upon connection
- #define DEFAULT_RESPAWN_TIME 600 /* ten minutes */
- #if !defined IGNORE_VEHICLE_DELETION
- new
- bool:gDialogCreated[ MAX_VEHICLES ] = { false, ... };
- #endif
- ShowPlayerDefaultDialog( playerid )
- {
- ShowPlayerDialog( playerid, 3434, DIALOG_STYLE_LIST, "Animation Menu (BETA)","Drinking/Smoking\nDancing\nSitting/Hands\nStop animation", "Select", "Close" );
- return 1;
- }
- public OnFilterScriptInit()
- {
- printf( " * Anim-Master version 4.0a loaded * " );
- return 1;
- }
- public OnFilterScriptExit()
- {
- printf( " * Anim-Master version 4.0a unloaded * " );
- return 1;
- }
- public OnPlayerSpawn( playerid )
- {
- #if !defined IGNORE_SPAWN_MESSAGES
- SendClientMessage( playerid, 0xFFFFFFFF, "[Mini-Helper]: Type /animmenu to use the animations " );
- #endif
- return 1;
- }
- public OnPlayerCommandText( playerid, cmdtext[] )
- {
- if ( strcmp( cmdtext, "/animmenu", true, 8 ) == 0 )
- {
- if ( GetPlayerState( playerid ) == PLAYER_STATE_DRIVER )
- {
- #if !defined IGNORE_VEHICLE_ACTIVATION
- ShowPlayerDefaultDialog( playerid );
- return 1;
- #endif
- }
- if ( GetPlayerState( playerid ) != PLAYER_STATE_PASSENGER ) ShowPlayerDefaultDialog( playerid );
- return 1;
- }
- return 0;
- }
- public OnVehicleSpawn( vehicleid )
- {
- return 1;
- }
- public OnDialogResponse( playerid, dialogid, response, listitem, inputtext[] )
- {
- if ( response )
- {
- switch ( dialogid )
- {
- case 3434 :
- {
- switch ( listitem )
- {
- case 0 : ShowPlayerDialog( playerid, 3435, DIALOG_STYLE_LIST, "Drinking/Smoking", "Drink Beer\nSmoke Cigar\nDrink Wine\nDrink Sprunk\nBack", "Ok", "Close" );
- case 1 : ShowPlayerDialog( playerid, 3440, DIALOG_STYLE_LIST, "Dancing", "Dance number 1\nDance number 2\nDance number 3\nDance number 4\nBack", "Ok", "Close" );
- case 2 : ShowPlayerDialog( playerid, 3441, DIALOG_STYLE_LIST, "Cellphone/Hands", "Hands up\nUse cellphone\nStop using cellphone\nBack", "Ok", "Close" );
- case 3 : ShowPlayerDialog( playerid, 3436, DIALOG_STYLE_LIST, "Stop animation", "Stop Animation\nBack", "Ok", "Close" );
- }
- }
- case 3435 :
- {
- if ( listitem > 10 ) return ShowPlayerDefaultDialog( playerid );
- new
- model_array[] = { 20, 21, 22, 23, };
- return SetPlayerSpecialAction( playerid, model_array[ listitem ] );
- }
- case 3436 :
- {
- if ( listitem > 8 ) return ShowPlayerDefaultDialog( playerid );
- new
- model_array[] = { 1, };
- return ClearAnimations( playerid, model_array[ listitem ] );
- }
- case 3437 :
- {
- if ( listitem > 12 ) return ShowPlayerDefaultDialog( playerid );
- new
- model_array[] = { 1, 15, 20, 30, 40, 45, 50, 55, 60, 65, 70, 75, 131 };
- return SetPlayerSkin( playerid, model_array[ listitem ] );
- }
- case 3438 :
- {
- if ( listitem > 3 ) return ShowPlayerDefaultDialog( playerid );
- new
- model_array[] = { 480, 533, 570, 600,800,1000,2000,3000,4000,5000,6000,7000 };
- return SetPlayerSkin( playerid, model_array[ listitem ] );
- }
- case 3439 :
- {
- if ( listitem > 24 ) return ShowPlayerDefaultDialog( playerid );
- new
- model_array[] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 478, 456, 554 };
- return SetPlayerTime( playerid, model_array[ listitem ] );
- }
- case 3440 :
- {
- if ( listitem > 7 ) return ShowPlayerDefaultDialog( playerid );
- new
- model_array[] = { 5, 6, 7, 8, };
- return SetPlayerSpecialAction( playerid, model_array[ listitem ] );
- }
- case 3441 :
- {
- if ( listitem > 12 ) return ShowPlayerDefaultDialog( playerid );
- new
- model_array[] = { 10, 11, 12,13, };
- return SetPlayerSpecialAction ( playerid, model_array[ listitem ] );
- }
- case 3442 :
- {
- if ( listitem > 17 ) return ShowPlayerDefaultDialog( playerid );
- new
- model_array[] = { 1010, 433, 431, 438, 437, 523, 427, 490, 528, 407, 544, 596, 598, 597, 599, 432, 601, 420 };
- return AddVehicleComponent( playerid, model_array[ listitem ] );
- }
- case 3443 :
- {
- if ( listitem > 33 ) return ShowPlayerDefaultDialog( playerid );
- new
- model_array[] = { 445, 504, 401, 518, 527, 542, 507, 562, 585, 419, 526, 604, 466, 492, 474, 546, 517, 410, 551, 516, 467, 600, 426, 436, 547, 405, 580, 560, 550, 549, 540, 491, 529, 421 };
- return SetPlayerSkin( playerid, model_array[ listitem ] );
- }
- case 3444 :
- {
- if ( listitem > 19 ) return ShowPlayerDefaultDialog( playerid );
- new
- model_array[] = { 602, 429, 496, 402, 541, 415, 589, 587, 565, 494, 502, 503, 411, 559, 603, 475, 506, 451, 558, 477 };
- return SetPlayerSkin( playerid, model_array[ listitem ] );
- }
- case 3445 :
- {
- if ( listitem > 4 ) return ShowPlayerDefaultDialog( playerid );
- new
- model_array[] = { 418, 404, 479, 458, 561 };
- return SetPlayerSkin( playerid, model_array[ listitem ] );
- }
- case 3446 :
- {
- if ( listitem > 9 ) return ShowPlayerDefaultDialog( playerid );
- new
- model_array[] = { 472, 473, 493, 595, 484, 430, 453, 452, 446, 454 };
- return SetPlayerSkin( playerid, model_array[ listitem ] );
- }
- case 3447 :
- {
- if ( listitem > 11 ) return ShowPlayerDefaultDialog( playerid );
- new
- model_array[] = { 435, 450, 591, 606, 607, 610, 569, 590, 584, 570, 608, 611 };
- return SetPlayerSkin( playerid, model_array[ listitem ] );
- }
- case 3448 :
- {
- if ( listitem > 23 ) return ShowPlayerDefaultDialog( playerid );
- new
- model_array[] = { 485, 537, 457, 483, 508, 532, 486, 406, 530, 538, 434, 545, 588, 571, 572, 423, 442, 428, 409, 574, 449, 525, 583, 539 };
- return SetPlayerSkin( playerid, model_array[ listitem ] );
- }
- case 3449 :
- {
- if ( listitem > 5 ) return ShowPlayerDefaultDialog( playerid );
- new
- model_array[] = { 441, 464, 465, 501, 564, 594 };
- return SetPlayerSkin( playerid, model_array[ listitem ] );
- }
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment