Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <iMenu>
- #define HellYeah 1
- #undef MAX_PLAYERS
- #define MAX_PLAYERS (100)
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Simple iMenu test filterscript");
- print("--------------------------------------\n");
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/menu", cmdtext, true, 10) == 0)
- {
- iMenu_ShowForPlayer(playerid , HellYeah , "This Is A Test For Samp Forums XD" , 0xFF000077 , 0x0000E477 , 0xFFFFFFFF , 0x00E800FF , 0xFF00FFFF ,0x0000FFFF );
- iMenu_AddItem(playerid , 0 , "Turismo" , "Spawns a Turismo For Player" , 451 , 0.0 , 0.0 , 65.0 , 1.3 , 0xFF0000FF ,-5963521, 0x00E4E4FF , 128 , 54);
- iMenu_AddItem(playerid , 1 , "Skin ID 23" , "Gives Player Skin ID 23" , 23 , 0.0 , 0.0 ,30.0, 1.0, 0xFFFF00FF ,-5963521, 0x00E404FF);
- iMenu_AddItem(playerid , 2 , "NRG" , "Spawns a NRG For Player" , 522 , 0.0 , 0.0 , 65.0 , 1.3, 0xFFE800FF ,-5963521, 0x000000FF);
- iMenu_AddItem(playerid , 3 , "Dildo" , "Gives Player a Rocket Launcher xD" , 321);
- iMenu_AddItem(playerid , 4 , "Rocket Launcher" ,"Gives Player a Rocket Launcher" , 359 , 0.0 , 0.0 , 0.0 , 1.3);
- iMenu_AddItem(playerid , 5 , "Say Hello" , "This will sends a message as 'Hello' on player screen");
- iMenu_AddItem(playerid , 6 , "Skin ID 299" , "Gives Player Skin ID 299" , 299 , 0.0 , 0.0 ,30.0);
- iMenu_AddItem(playerid , 7 , "Test 8" , "This is just a test so nvm fuck it");
- iMenu_AddItem(playerid , 8 , "Test 9" , "This is just a test so nvm fuck it");
- iMenu_AddItem(playerid , 9 , "Test 10" , "This is just a test so nvm fuck it");
- iMenu_AddItem(playerid , 10 , "Test 11" , "This is just a test so nvm fuck it");
- iMenu_AddItem(playerid , 11 , "Test 12" , "This is just a test so nvm fuck it");
- iMenu_AddItem(playerid , 12 , "Test 13" , "This is just a test so nvm fuck it");
- iMenu_AddItem(playerid , 13 , "Test 14" , "This is just a test so nvm fuck it");
- iMenu_AddItem(playerid , 14 , "Test 15" , "This is just a test so nvm fuck it");
- iMenu_AddItem(playerid , 15 , "Test 16" , "This is just a test so nvm fuck it");
- return 1;
- }
- return 0;
- }
- public iMenuPlayerResponse(playerid , imenuid , itemid)
- {
- if(imenuid == HellYeah)
- {
- switch(itemid)
- {
- case 0:
- {
- new Float:x, Float:y, Float:z, Float:a;
- GetPlayerFacingAngle(playerid,a);
- GetPlayerPos(playerid, x, y, z);
- new car;
- car=CreateVehicle(451,x,y,z,a,-1,-1,30000);
- PutPlayerInVehicle(playerid , car , 0);
- }
- case 1:
- {
- SetPlayerSkin(playerid , 23);
- }
- case 2:
- {
- new Float:x, Float:y, Float:z, Float:a;
- GetPlayerFacingAngle(playerid,a);
- GetPlayerPos(playerid, x, y, z);
- new car;
- car=CreateVehicle(522,x,y,z,a,-1,-1,30000);
- PutPlayerInVehicle(playerid , car , 0);
- }
- case 3:
- {
- GivePlayerWeapon(playerid , 10 , 10000);
- }
- case 4:
- {
- GivePlayerWeapon(playerid , 35 , 10000);
- }
- case 5:
- {
- GameTextForPlayer(playerid , "~r~Hello MF !!" , 8000, 5);
- }
- case 6:
- {
- SetPlayerSkin(playerid , 299);
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement