Help! Dialog
#1

help i need help i have made weapons dialog and skill/job dialog but when i get to refill checkpoint and select wich weapons i want its give me the job/skill dialog its not select the weapos i select
Reply
#2

we need to see the script PLS
Reply
#3

Please help i got in checkpoint its give me list with weapons then when i chosse mp5 its give me TEAM_RAPIST job/class


[b]DIalogs Reposne[b]

Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
new cskill;
new copr;
if(dialogid == cskill)
{
	if(response == 0) return SendClientMessage(playerid,COLOR_RED,"You Become Rapist Beacuse You Dont Choose Your Skill You Click Cancel");
	GivePlayerWeapon(playerid,5,1);
	GivePlayerWeapon(playerid,22,100);
	GivePlayerWeapon(playerid,14,1);
    gTeam[playerid] = TEAM_RAPIST;
    SetPlayerToTeamColour(playerid);
    canchooseskill[playerid] =0;
    switch(listitem)
    {
        case 0:{
	   	SendClientMessage(playerid,0x1E90FFAA, "Type /commands for your commands");
    	SendClientMessage(playerid,0x1E90FFAA, "RAPIST: You can rape other players and infect them with STDs that could kill them");
		GivePlayerWeapon(playerid,5,1);
  		GivePlayerWeapon(playerid,22,100);
  		GivePlayerWeapon(playerid,14,1);
    	gTeam[playerid] = TEAM_RAPIST;
     	SetPlayerToTeamColour(playerid);
      	canchooseskill[playerid] =0;
       	TextDrawHideForPlayer(playerid,txtTypeSkill);
       	return 1;
		}
	    case 1:{
     	SendClientMessage(playerid,0x1E90FFAA, "Type /commands for your commands");
      	SendClientMessage(playerid,0x00FFFFAA, "DRUG DEALER: You will supply people with drugs for a price. Dont let people rip you off..");
       	SendClientMessage(playerid,0x00FFFFAA, "Keep a watch on the chat for players wanting drugs. Visit the drug house to replenish your stock");
        GivePlayerWeapon(playerid,25,50);
        GivePlayerWeapon(playerid,28,100);
        GivePlayerWeapon(playerid,5,1);
        gTeam[playerid] = TEAM_DRGDEL;
        SetPlayerToTeamColour(playerid);
        PlayerDrugs[playerid] = 500;
        canchooseskill[playerid] =0;
        TextDrawHideForPlayer(playerid,txtTypeSkill);
       	return 1;
		}
		case 2:{
  		SendClientMessage(playerid,0x1E90FFAA, "Type /commands for your commands");
    	SendClientMessage(playerid,0x00FFFFAA, "GUN DEALER: If anyone needs weapons then you sell them some lead. Your prices are set by the game");
     	SendClientMessage(playerid,0x00FFFFAA, "You can also deliver guns to ammunations");
      	GivePlayerWeapon(playerid,29,500);
       	GivePlayerWeapon(playerid,30,50);
       	gTeam[playerid] = TEAM_GUNDEL;
        SetPlayerToTeamColour(playerid);
        canchooseskill[playerid] =0;
        TextDrawHideForPlayer(playerid,txtTypeSkill);
       	return 1;
		}
		case 3:{
  		SendClientMessage(playerid,0x1E90FFAA, "Type /commands for your commands");
    	SendClientMessage(playerid,0x00FFFFAA, "HITMAN: If anyone needs another player dead then they will contact you. Make sure you agree a price and get paid");
     	SendClientMessage(playerid,0x00FFFFAA, "Look out for messages on the chat like **Hitmen: PsyKo wants Tyrone dead. Contact PsyKo to discuss**");
      	SendClientMessage(playerid,0x00FFFFAA, "Type /hits to see if there are any hit contracts available");
       	GivePlayerWeapon(playerid,27,250);
        GivePlayerWeapon(playerid,23,100);
        GivePlayerWeapon(playerid,31,250);
        gTeam[playerid] = TEAM_HITMAN;
        SetPlayerToTeamColour(playerid);
        canchooseskill[playerid] =0;
        TextDrawHideForPlayer(playerid,txtTypeSkill);
       	return 1;
		}
		case 4:{
  		SendClientMessage(playerid,0x1E90FFAA, "Type /commands for your commands");
    	SendClientMessage(playerid,0x00FFFFAA, "PRIVATE MEDIC: If anyone needs medical attention for cuts and bruses or STDs then you can cure then and heal them");
     	SendClientMessage(playerid,0x00FFFFAA, "You can also infect them with STDs that could kill them DO NOT HIT/INFECT THEM JUST TO HEAL/CURE THEM");
        GivePlayerWeapon(playerid,22,250);
        gTeam[playerid] = TEAM_PVTMED;
        SetPlayerToTeamColour(playerid);
        canchooseskill[playerid] =0;
        TextDrawHideForPlayer(playerid,txtTypeSkill);
       	return 1;
		}
		case 5:{
  		SendClientMessage(playerid,0x1E90FFAA, "Type /commands for your commands");
  		SendClientMessage(playerid,0x00FFFFAA, "BOUNTY HUNTER: You have to help the cops take Escaped prisoners back into custody");
    	SendClientMessage(playerid,0x00FFFFAA, "Simply target RED players and type /ar (id) next to them to see if you have found an escaped convict");
     	SendClientMessage(playerid,0x00FFFFAA, "Type /bounty for details of Escaped Prisoners");
      	GivePlayerWeapon(playerid,27,250);
       	GivePlayerWeapon(playerid,23,100);
        GivePlayerWeapon(playerid,31,250);
        gTeam[playerid] = TEAM_BOUNTY;
        SetPlayerToTeamColour(playerid);
        canchooseskill[playerid] =0;
        TextDrawHideForPlayer(playerid,txtTypeSkill);
       	return 1;
		}
		case 6:{
  		SendClientMessage(playerid,0x1E90FFAA, "Type /commands for your commands.");
    	SendClientMessage(playerid,0x00FFFFAA, "Kidnapper: You have to get a passenger in your car.");
		SendClientMessage(playerid,0x00FFFFAA, "Tie them up using /tie, and then drive to a location which is out");
		SendClientMessage(playerid,0x00FFFFAA, "of the way and proceed to do what you wish.");
		GivePlayerWeapon(playerid,26,40);
		GivePlayerWeapon(playerid,32,200);
		GivePlayerWeapon(playerid,22,200);
		gTeam[playerid] = TEAM_KIDNAP;
		SetPlayerToTeamColour(playerid);
		canchooseskill[playerid] =0;
		TextDrawHideForPlayer(playerid,txtTypeSkill);
       	return 1;
		}
		case 7:{
		SendClientMessage(playerid,0x1E90FFAA, "Type /commands for your commands");
		SendClientMessage(playerid,0x00FFFFAA, "Pilot: You are a plane driver");
	 	SendClientMessage(playerid,0x00FFFFAA, "If a player orders a private plane you can be the driver");
	 	GivePlayerWeapon(playerid,5,1);
	 	GivePlayerWeapon(playerid,22,100);
	 	GivePlayerWeapon(playerid,14,1);
	 	gTeam[playerid] = TEAM_PILOT;
	 	SetPlayerToTeamColour(playerid);
	 	canchooseskill[playerid] =0;
	 	TextDrawHideForPlayer(playerid,txtTypeSkill);
	 	return 1;
	 	}
	}
}
if(dialogid == copr)
{
	if(response == 1)return ShowPlayerDialog(playerid,copr,DIALOG_STYLE_LIST,"Free Cops Weapons","MP5\nM4\nSNIPER\nSWAN OFF\nDESERT EAGLE\nTEC9\nSHOUTGUN\nPARACHUTE\nARMOUR","Select","Cancel");
	if(response == 0)return SendClientMessage(playerid,COLOR_GREEN,"Good Luck Cop!");
    switch(listitem)
    {
	    case 0:{
		GivePlayerWeapon(playerid,29,1000);
		SendClientMessage(playerid,COLOR_ROYALBLUE,"LSPD DEPT HAS GIVE YOU MP5 WITH 1000 AMMO");
		return 1;
		}
  		case 1:{
		GivePlayerWeapon(playerid,31,1000);
		SendClientMessage(playerid,COLOR_ROYALBLUE,"LSPD DEPT HAS GIVE YOU M4 WITH 1000 AMMO");
		return 1;
		}
  		case 2:{
		GivePlayerWeapon(playerid,34,1000);
		SendClientMessage(playerid,COLOR_ROYALBLUE,"LSPD DEPT HAS GIVE YOU SNIPER WITH 1000 AMMO");
		return 1;
		}
  		case 3:{
		GivePlayerWeapon(playerid,26,1000);
		SendClientMessage(playerid,COLOR_ROYALBLUE,"LSPD DEPT HAS GIVE YOU SAWN OFF WITH 1000 AMMO");
		return 1;
		}
  		case 4:{
		GivePlayerWeapon(playerid,24,1000);
		SendClientMessage(playerid,COLOR_ROYALBLUE,"LSPD DEPT HAS GIVE YOU DESERT EAGLE WITH 1000 AMMO");
		return 1;
		}
		case 5:{
		GivePlayerWeapon(playerid,32,1000);
		SendClientMessage(playerid,COLOR_ROYALBLUE,"LSPD DEPT HAS GIVE YOU TEC9 WITH 1000 AMMO");
		return 1;
		}
  		case 6:{
		GivePlayerWeapon(playerid,25,1000);
		SendClientMessage(playerid,COLOR_ROYALBLUE,"LSPD DEPT HAS GIVE YOU SHOUTGUN WITH 1000 AMMO");
		return 1;
		}
		case 7:{
		GivePlayerWeapon(playerid,46,1);
		SendClientMessage(playerid,COLOR_ROYALBLUE,"LSPD DEPT HAS GIVE YOU 1 PACKET OF PARACHUTE");
		return 1;
		}
		case 8:{
		SetPlayerArmour(playerid,100);
		SendClientMessage(playerid,COLOR_ROYALBLUE,"LSPD DEPT HAS GIVE YOU ARMOUR WITH 100/100 SAVE");
		}
		}
		}
		return 1;
		}
When i enter checkpoint

Код:
public OnPlayerEnterCheckpoint(playerid)
{
	   if(getCheckpointType(playerid) == 22 && getCheckpointType(playerid) == 22)
       {
       if(gTeam[playerid] >= 3)
       {
			SendClientMessage(playerid,COLOR_RED,"Only Cops And Swat Can Refill Weapons");
			return 1;
	   }
       if(!IsPlayerInAnyVehicle(playerid))
	   {
	        new copr;
       	    ShowPlayerDialog(playerid,copr,DIALOG_STYLE_LIST,"Free Cops Weapons","MP5\nM4\nSNIPER\nSWAN OFF\nDESERT EAGLE\nTEC9\nSHOUTGUN\nPARACHUTE\nARMOUR","Select","Cancel");
	        }
	        return 1;
	   }
Reply
#4

ANy Help! please all is do dialogs!
Reply
#5

ok you know you got new copr;
you need to change that
First delete your new copr; wherever u got it
And at the top of ur script just put
pawn Код:
#define copr 20
you need to give the DIALOG a ID so it could work so thats why u do 'define at the top
BUT the copr i defined for u is ID:20 if you allredy have a a ID like that then change it
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)