Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == 10)
- {
- if(response)
- {
- if(listitem == 0)
- {
- SendClientMessage(playerid, Bianco,"Uso: digita '/daisoldi [ID] [Soldi]'");
- return 1;
- }
- if(listitem == 1)
- {
- if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFFFFFFF,"{00FF00}[Errore:]{FFFFFF} Non sei un amministratore!");
- SendClientMessage(playerid, Bianco, "-----------| Killatore: |-----------");
- SendClientMessage(playerid, Bianco, "Come da te scelto, hai ottenuto il Killatore.");
- SendClientMessage(playerid, Bianco, "-----------| |-----------");
- GivePlayerWeapon(playerid,23,9999);
- return 1;
- }
- if(listitem == 2)
- {
- SendClientMessage(playerid, Bianco,"Uso: digita ' /settaskin [ID] [Skin]");
- }
- if(listitem == 3)
- {
- SendClientMessage(playerid, Bianco,"Uso: digita ' /cura [ID]");
- }
- if(listitem == 4)
- {
- {
- if (IsPlayerAdmin(playerid))
- {
- for(new i=0;i<MAX_VEHICLES;i++)
- {
- if(IsVehicleOccupied(i) == 0)
- {
- SetVehicleToRespawn(i);
- }
- }
- new name[MAX_PLAYER_NAME+1], string[100+MAX_PLAYER_NAME+1];
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string), "{00FF00}[Informazione:]{FFFFFF} Veicoli respawnati con successo da {33CCFF} %s.", name);
- SendClientMessageToAll(0xC4C4C4FF, string);
- }
- else
- {
- SendClientMessage(playerid,Bianco, "{00FF00}[Errore:]{FFFFFF} Non sei un amministratore!");
- }
- return 1;
- }
- }
- }
- if(dialogid == 11)
- {
- if(response)
- {
- if(listitem == 0)
- {
- new String[256],NomeLoggato[24];
- GetPlayerName(playerid,NomeLoggato,24);
- format(String,256,"' %s ' si è gotato a Salto (/teleports)",NomeLoggato);
- SendClientMessageToAll(0xAA3333AA,String);
- SetPlayerPos(playerid, 2067.4763,1609.3029,3093.7717);
- SetPlayerFacingAngle( playerid, 90.2003 );
- SendClientMessage(playerid, Bianco, "Consiglio: Buttati di sotto con o senza paracadute. ");
- SendClientMessage(playerid, Bianco, "Consiglio2: Se vuoi il paracadute, fai '/para'");
- return 1;
- }
- if(listitem == 1)
- {
- new String[256],NomeLoggato[24];
- GetPlayerName(playerid,NomeLoggato,24);
- format(String,256,"' %s ' si è gotato a Salto2 (/teleports)",NomeLoggato);
- SendClientMessageToAll(0xAA3333AA,String);
- SetPlayerPos(playerid,1573.7509,-1020.6570,1808.7555);
- SetPlayerFacingAngle(playerid, 354.8444);
- SetPlayerInterior(playerid, 0);
- SendClientMessage(playerid, Bianco, "Consiglio: Buttati di sotto con o senza paracadute. ");
- SendClientMessage(playerid, Bianco, "Consiglio2: Se vuoi il paracadute, fai '/para'");
- return 1;
- }
- if(listitem == 2)
- {
- new String[256],NomeLoggato[24];
- GetPlayerName(playerid,NomeLoggato,24);
- format(String,256,"' %s ' si è gotato a Barca (/teleports)",NomeLoggato);
- SendClientMessageToAll(0xAA3333AA,String);
- SetPlayerPos(playerid, 3184.1182,-3217.1106,767.9109);
- SetPlayerFacingAngle( playerid, 272.9579 );
- SendClientMessage(playerid, Bianco, "Consiglio: Buttati di sotto con o senza paracadute oppure stai sulla nave. ");
- SendClientMessage(playerid, Bianco, "Consiglio2: Se vuoi il paracadute, fai '/para'");
- return 1;
- }
- if(listitem == 3)
- {
- new String[256],NomeLoggato[24];
- GetPlayerName(playerid,NomeLoggato,24);
- format(String,256,"' %s ' si è gotato a DM Barchece(/teleports)",NomeLoggato);
- SendClientMessageToAll(0xAA3333AA,String);
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid,8,1);
- new rand = random(sizeof(RandomSpawn));
- SetPlayerPos(playerid, RandomSpawn[rand][0], RandomSpawn[rand][1],RandomSpawn[rand][2]);
- SetPlayerFacingAngle(playerid, RandomSpawn[rand][3]);
- SendClientMessage(playerid, Bianco, "Consiglio: Uccidi i nemici conquistando la loro base. ");
- SendClientMessage(playerid, Bianco, "Consiglio2: Se vuoi uscire fai /respawn.");
- return 1;
- }
- if(listitem == 4)
- {
- new String[256],NomeLoggato[24];
- GetPlayerName(playerid,NomeLoggato,24);
- format(String,256,"' %s ' si è gotato a DM Carro Armato(/teleports)",NomeLoggato);
- SendClientMessageToAll(0xAA3333AA,String);
- new rand = random(sizeof(RandomSpawn));
- SetPlayerPos(playerid, RandomSpawn2[rand][0], RandomSpawn2[rand][1],RandomSpawn2[rand][2]);
- SetPlayerFacingAngle(playerid, RandomSpawn2[rand][3]);
- SetPlayerSkin(playerid,287);
- SetPlayerHealth(playerid, 100);
- GivePlayerWeapon(playerid,31,250);
- GivePlayerWeapon(playerid,36,10);
- SendClientMessage(playerid, Bianco, "Consiglio: Entra nel carr'armato e uccidi tutti oppure spara la gente. ");
- SendClientMessage(playerid, Bianco, "Consiglio2: Se vuoi uscire, fai '/respawn'");
- }
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement