Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // This is a comment
- // uncomment the line below if you want to write a filterscript
- //#define FILTERSCRIPT
- new pickCurati;
- #include <a_samp>
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Blank Filterscript by your name here");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #else
- main()
- {
- print("\n----------------------------------");
- print(" Blank Gamemode by your name here");
- print("----------------------------------\n");
- }
- #endif
- public OnGameModeInit()
- {
- // Don't use these lines if it's a filterscript
- SetGameModeText("Blank Script");
- AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
- pickCurati = CreatePickup(1240, 2, 1958.3783, 1343.1572, 15.3746, 0);
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- {
- if(!strcmp(cmdtext, "/selezionavestiti", true))
- {
- if(IsPlayerInRangeOfPoint(playerid, 7.0, 2695.6880, -1704.6300, 11.8438))
- SetPlayerHealth(playerid, 999);
- SendClientMessage(playerid, 0x00FF00AA, "{FFFFFF} Hai preso la tua tuta da softair dallo zaino!");
- return 1;
- }
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- if(pickupid == pickCurati)
- {
- SendClientMessage(playerid, 0x00FF00AA, "Digita /selezionavestiti per cambiare skin.");
- GameTextForPlayer(playerid, "Qui puoi usare /selezionavestiti", 187000,3);
- }
- return 1;
- }
- _________________________________________________________________________________________________________
- //DIALOG ARMI SOFTAIR
- #define DIALOGARMI 1234
- //LALALALALA
- ShowPlayerDialog(playerid, 1234, 3, "Armi Softair", "M4,\nMP5\nDeagle\nShotgun", "Finito!", "Annulla");
- OnDialogResponde(playerid, dialogid, responde, listitem, inputtext[])
- {
- switch(dialogid)
- {
- case DIALOGARMI:
- {
- if(response)
- {
- switch(listitem)
- {
- case 0: GivePlayerWeapon(playerid, IDM4, 700)
- case 1: GiverPlayerWeapon(playerid, IDMP5, 500)
- case 2: GivePlayerWeapon(playerid, IDEAGLE, 75)
- case 3: GivePlayerWeapon(playerid, IDSHOTGUN, 50)
- }
- }
- return 1;
- }
- return 1
- }
- return 1;
- }
Add Comment
Please, Sign In to add comment