How make skillmenu a input?
#1

Hey I have this script

PHP код:
    SkillMenu CreateMenu("~b~Skill ~w~Selection",1,15,150,200);
    
SetMenuColumnHeader(SkillMenu 0"~r~Please select your skill");
    
AddMenuItem(SkillMenu,0,"Rapist");
    
AddMenuItem(SkillMenu,0,"Drug Dealer");
    
AddMenuItem(SkillMenu,0,"Weapon Dealer");
    
AddMenuItem(SkillMenu,0,"Hitman");
    
AddMenuItem(SkillMenu,0,"Car Jacker");
    
AddMenuItem(SkillMenu,0,"Kidnapper");
    
AddMenuItem(SkillMenu,0,"Thief");
    
AddMenuItem(SkillMenu,0,"Terrorist"); 
i and i want to make it a input box how can i do that ?


here some more of parts

PHP код:
public OnPlayerSelectedMenuRow(playeridrow)
{
    new 
Menu:Current GetPlayerMenu(playerid);
    if(
Current == SkillMenu)
    {
        
TogglePlayerControllable(playerid1);
        switch(
row)
        {
            case 
0:
            {
                
ShowPlayerDialog(playerid,DIALOG_SKILLINFO,DIALOG_STYLE_MSGBOX,"{4169FF}RAPIST INFORMATION:","{FFFFFF}Commands: Type /commands for a list of Rapist commands.\n{FFFFFF}Job: Your job is to rape players and infect them with STI's such as Chlamydia.\n{FFFFFF}Please remember to abide by the server /rules, or you may be banned.","Ok","Cancel");
                
GivePlayerWeapon(playerid,22,100);
                
GivePlayerWeapon(playerid,4,1);
                
GivePlayerWeapon(playerid,10,1);
                
GivePlayerWeapon(playerid,28,300);
                
GivePlayerWeapon(playerid,27,300);
                
gTeam[playerid] = TEAM_RAPIST;
                
SetPlayerToTeamColour(playerid);
                
CanChooseSkill[playerid] =0;
            }
            case 
1:
            {
                
ShowPlayerDialog(playerid,DIALOG_SKILLINFO,DIALOG_STYLE_MSGBOX,"{4169FF}DRUG DEALER INFORMATION:","{FFFFFF}Commands: Type /commands for a list of Drug Dealer commands.\n{FFFFFF}Job: To supply other players with drugs. Make sure they pay up!\n{FFFFFF}Respond to players when they call for you with the /drugdealer command.\n{FFFFFF}Please remember to abide by the server /rules, or you may be banned.","Ok","Cancel");
                   
GivePlayerWeapon(playerid,22,50);
                   
GivePlayerWeapon(playerid,28,100);
                   
GivePlayerWeapon(playerid,5,1);
                   
GivePlayerWeapon(playerid,26,450);
                   
GivePlayerWeapon(playerid,31,450);
                   
gTeam[playerid] = TEAM_DRGDEL;
                   
SetPlayerToTeamColour(playerid);
                   
HasWeed[playerid] =50;
                   
HasHeroin[playerid] =3;
                   
CanChooseSkill[playerid] =0;
            }
            case 
2:
            {
                
ShowPlayerDialog(playerid,DIALOG_SKILLINFO,DIALOG_STYLE_MSGBOX,"{4169FF}GUN DEALER INFORMATION:","{FFFFFF}Commands: Type /commands for a list of Gun Dealer commands.\n{FFFFFF}Job: To sell weapons to other players. Make sure the pay up!\n{FFFFFF}Respond to players when they call for you with the /gundealer command.\n{FFFFFF}Please remember to abide by the server /rules, or you may be banned.","Ok","Cancel");
                
GivePlayerWeapon(playerid,30,500);
                
GivePlayerWeapon(playerid,32,150);
                
GivePlayerWeapon(playerid,22,50);
                   
GivePlayerWeapon(playerid,4,1);
                   
GivePlayerWeapon(playerid,26,450);
                   
GivePlayerWeapon(playerid,31,450);
                
gTeam[playerid] = TEAM_GUNDEL;
                
SetPlayerToTeamColour(playerid);
                
CanChooseSkill[playerid] =0;
            }
            case 
3:
            {
                
ShowPlayerDialog(playerid,DIALOG_SKILLINFO,DIALOG_STYLE_MSGBOX,"{4169FF}HITMAN INFORMATION:","{FFFFFF}Commands: Type /commands for a list of Hitman commands.\n{FFFFFF}Job: To kill players that appear on the /hitlist. Do not kill people unless they are on this list.\n{FFFFFF}Respond to the /hitlist whenever players place a hit on someone using /placehit.\n{FFFFFF}Please remember to abide by the server /rules, or you may be banned.","Ok","Cancel");
                
GivePlayerWeapon(playerid,30,500);
                
GivePlayerWeapon(playerid,32,150);
                
GivePlayerWeapon(playerid,23,50);
                   
GivePlayerWeapon(playerid,4,1);
                   
GivePlayerWeapon(playerid,26,450);
                
gTeam[playerid] = TEAM_HITMAN;
                
SetPlayerToTeamColour(playerid);
                
CanChooseSkill[playerid] =0;
               }
            case 
4:
            {
                
ShowPlayerDialog(playerid,DIALOG_SKILLINFO,DIALOG_STYLE_MSGBOX,"{4169FF}CAR JACKER INFORMATION:","{FFFFFF}Commands: Type /commands for a list of Car Jacker commands.\n{FFFFFF}Job: You can steal vehicles that people are driving or have bought and sell them to the Shipyard.\n{FFFFFF}Search around San Fierro for cars that you can steal, you can then take these cars to the Shipyard for money.\n{FFFFFF}Please remember to abide by the server /rules, or you may be banned.","Ok","Cancel");
                
GivePlayerWeapon(playerid,6,1);
                   
GivePlayerWeapon(playerid,24,200);
                   
GivePlayerWeapon(playerid,28,300);
                   
GivePlayerWeapon(playerid,31,450);
                   
GivePlayerWeapon(playerid,27,450);
                   
gTeam[playerid] = TEAM_CARJACK;
                   
SetPlayerToTeamColour(playerid);
                   
CanChooseSkill[playerid] =0;
               }
            case 
5:
            {
                
ShowPlayerDialog(playerid,DIALOG_SKILLINFO,DIALOG_STYLE_MSGBOX,"{4169FF}KIDNAPPER INFORMATION:","{FFFFFF}Commands: Type /commands for a list of Kidnapper commands.\n{FFFFFF}Job: You can kidnap people using the /kidnap command, infect them with STD's and do watever you want with them.\n{FFFFFF}Please remember to abide by the server /rules, or you may be banned.","Ok","Cancel");
                
GivePlayerWeapon(playerid,6,1);
                   
GivePlayerWeapon(playerid,24,200);
                   
GivePlayerWeapon(playerid,28,300);
                   
GivePlayerWeapon(playerid,31,450);
                   
GivePlayerWeapon(playerid,27,450);
                   
gTeam[playerid] = TEAM_KIDNAP;
                   
SetPlayerToTeamColour(playerid);
                   
CanChooseSkill[playerid] =0;
            }
            case 
6:
            {
                
ShowPlayerDialog(playerid,DIALOG_SKILLINFO,DIALOG_STYLE_MSGBOX,"{4169FF}THIEF INFORMATION:","{FFFFFF}Commands: Type /commands for a list of Thief commands.\n{FFFFFF}Job: To rob as many places and people as you can to make money.\n{FFFFFF}Use /robskill to see your robbing level and see what you can rob.\n{FFFFFF}Please remember to abide by the server /rules, or you may be banned.","Ok","Cancel");
                
GivePlayerWeapon(playerid,4,1);
                   
GivePlayerWeapon(playerid,24,200);
                   
GivePlayerWeapon(playerid,28,300);
                   
GivePlayerWeapon(playerid,31,450);
                   
GivePlayerWeapon(playerid,27,450);
                   
gTeam[playerid] = TEAM_THIEF;
                   
SetPlayerToTeamColour(playerid);
                   
CanChooseSkill[playerid] =0;
               }
            case 
7:
            {
                
ShowPlayerDialog(playerid,DIALOG_SKILLINFO,DIALOG_STYLE_MSGBOX,"{4169FF}TERRORIST INFORMATION:","{FFFFFF}Commands: Type /commands for a list of Terrorist commands.\n{FFFFFF}Job: To blow things up in San Fierro.\n{FFFFFF}You can buy C4 from the bomb shop to use in your terrorism.\n{FFFFFF}Use /tskill to see your terrorism level and what you can blow up.\n{FFFFFF}Please remember to abide by the server /rules, or you may be banned.","Ok","Cancel");
                
GivePlayerWeapon(playerid,6,1);
                   
GivePlayerWeapon(playerid,24,200);
                   
GivePlayerWeapon(playerid,28,300);
                   
GivePlayerWeapon(playerid,31,450);
                   
GivePlayerWeapon(playerid,27,450);
                   
gTeam[playerid] = TEAM_TERRO;
                   
SetPlayerToTeamColour(playerid);
                   
CanChooseSkill[playerid] =0;
              }
        }
    }
    return 
1;

need more info just let me know
Reply
#2

pawn Код:
#define DIALOG_SKILLMENU 1000 //Change to whatever dialogid is not in use

//Put this where you select skill:
ShowPlayerDialog(playerid, DIALOG_SKILLMENU, DIALOG_STYLE_LIST, "Select your skill", "Rapist\nDrug Dealer\nWeapon Dealer\nHitman\nCar Jacker\nKidnapper\nThief\nTerrorist
   
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == DIALOG_SKILLMENU)
    {
        TogglePlayerControllable(playerid, 1);
        switch(listitem)
        {
            case 0:
            {
                ShowPlayerDialog(playerid,DIALOG_SKILLINFO,DIALOG_STYLE_MSGBOX,"
{4169FF}RAPIST INFORMATION:","{FFFFFF}Commands: Type /commands for a list of Rapist commands.\n{FFFFFF}Job: Your job is to rape players and infect them with STI's such as Chlamydia.\n{FFFFFF}Please remember to abide by the server /rules, or you may be banned.","Ok","Cancel");
                GivePlayerWeapon(playerid,22,100);
                GivePlayerWeapon(playerid,4,1);
                GivePlayerWeapon(playerid,10,1);
                GivePlayerWeapon(playerid,28,300);
                GivePlayerWeapon(playerid,27,300);
                gTeam[playerid] = TEAM_RAPIST;
                SetPlayerToTeamColour(playerid);
                CanChooseSkill[playerid] =0;
            }
            case 1:
            {
                ShowPlayerDialog(playerid,DIALOG_SKILLINFO,DIALOG_STYLE_MSGBOX,"{4169FF}DRUG DEALER INFORMATION:","{FFFFFF}Commands: Type /commands for a list of Drug Dealer commands.\n{FFFFFF}Job: To supply other players with drugs. Make sure they pay up!\n{FFFFFF}Respond to players when they call for you with the /drugdealer command.\n{FFFFFF}Please remember to abide by the server /rules, or you may be banned.","Ok","Cancel");
                GivePlayerWeapon(playerid,22,50);
                GivePlayerWeapon(playerid,28,100);
                GivePlayerWeapon(playerid,5,1);
                GivePlayerWeapon(playerid,26,450);
                GivePlayerWeapon(playerid,31,450);
                gTeam[playerid] = TEAM_DRGDEL;
                SetPlayerToTeamColour(playerid);
                HasWeed[playerid] =50;
                HasHeroin[playerid] =3;
                CanChooseSkill[playerid] =0;
            }
            case 2:
            {
                ShowPlayerDialog(playerid,DIALOG_SKILLINFO,DIALOG_STYLE_MSGBOX,"{4169FF}GUN DEALER INFORMATION:","{FFFFFF}Commands: Type /commands for a list of Gun Dealer commands.\n{FFFFFF}Job: To sell weapons to other players. Make sure the pay up!\n{FFFFFF}Respond to players when they call for you with the /gundealer command.\n{FFFFFF}Please remember to abide by the server /rules, or you may be banned.","Ok","Cancel");
                GivePlayerWeapon(playerid,30,500);
                GivePlayerWeapon(playerid,32,150);
                GivePlayerWeapon(playerid,22,50);
                GivePlayerWeapon(playerid,4,1);
                GivePlayerWeapon(playerid,26,450);
                GivePlayerWeapon(playerid,31,450);
                gTeam[playerid] = TEAM_GUNDEL;
                SetPlayerToTeamColour(playerid);
                CanChooseSkill[playerid] =0;
            }
            case 3:
            {
                ShowPlayerDialog(playerid,DIALOG_SKILLINFO,DIALOG_STYLE_MSGBOX,"{4169FF}HITMAN INFORMATION:","{FFFFFF}Commands: Type /commands for a list of Hitman commands.\n{FFFFFF}Job: To kill players that appear on the /hitlist. Do not kill people unless they are on this list.\n{FFFFFF}Respond to the /hitlist whenever players place a hit on someone using /placehit.\n{FFFFFF}Please remember to abide by the server /rules, or you may be banned.","Ok","Cancel");
                GivePlayerWeapon(playerid,30,500);
                GivePlayerWeapon(playerid,32,150);
                GivePlayerWeapon(playerid,23,50);
                GivePlayerWeapon(playerid,4,1);
                GivePlayerWeapon(playerid,26,450);
                gTeam[playerid] = TEAM_HITMAN;
                SetPlayerToTeamColour(playerid);
                CanChooseSkill[playerid] =0;
               }
            case 4:
            {
                ShowPlayerDialog(playerid,DIALOG_SKILLINFO,DIALOG_STYLE_MSGBOX,"{4169FF}CAR JACKER INFORMATION:","{FFFFFF}Commands: Type /commands for a list of Car Jacker commands.\n{FFFFFF}Job: You can steal vehicles that people are driving or have bought and sell them to the Shipyard.\n{FFFFFF}Search around San Fierro for cars that you can steal, you can then take these cars to the Shipyard for money.\n{FFFFFF}Please remember to abide by the server /rules, or you may be banned.","Ok","Cancel");
                GivePlayerWeapon(playerid,6,1);
                GivePlayerWeapon(playerid,24,200);
                GivePlayerWeapon(playerid,28,300);
                GivePlayerWeapon(playerid,31,450);
                GivePlayerWeapon(playerid,27,450);
                gTeam[playerid] = TEAM_CARJACK;
                SetPlayerToTeamColour(playerid);
                CanChooseSkill[playerid] =0;
            }
            case 5:
            {
                ShowPlayerDialog(playerid,DIALOG_SKILLINFO,DIALOG_STYLE_MSGBOX,"{4169FF}KIDNAPPER INFORMATION:","{FFFFFF}Commands: Type /commands for a list of Kidnapper commands.\n{FFFFFF}Job: You can kidnap people using the /kidnap command, infect them with STD'
s and do watever you want with them.\n{FFFFFF}Please remember to abide by the server /rules, or you may be banned.","Ok","Cancel");
                GivePlayerWeapon(playerid,6,1);
                GivePlayerWeapon(playerid,24,200);
                GivePlayerWeapon(playerid,28,300);
                GivePlayerWeapon(playerid,31,450);
                GivePlayerWeapon(playerid,27,450);
                gTeam[playerid] = TEAM_KIDNAP;
                SetPlayerToTeamColour(playerid);
                CanChooseSkill[playerid] =0;
            }
            case 6:
            {
                ShowPlayerDialog(playerid,DIALOG_SKILLINFO,DIALOG_STYLE_MSGBOX,"
{4169FF}THIEF INFORMATION:","{FFFFFF}Commands: Type /commands for a list of Thief commands.\n{FFFFFF}Job: To rob as many places and people as you can to make money.\n{FFFFFF}Use /robskill to see your robbing level and see what you can rob.\n{FFFFFF}Please remember to abide by the server /rules, or you may be banned.","Ok","Cancel");
                GivePlayerWeapon(playerid,4,1);
                GivePlayerWeapon(playerid,24,200);
                GivePlayerWeapon(playerid,28,300);
                GivePlayerWeapon(playerid,31,450);
                GivePlayerWeapon(playerid,27,450);
                gTeam[playerid] = TEAM_THIEF;
                SetPlayerToTeamColour(playerid);
                CanChooseSkill[playerid] =0;
            }
            case 7:
            {
                ShowPlayerDialog(playerid,DIALOG_SKILLINFO,DIALOG_STYLE_MSGBOX,"
{4169FF}TERRORIST INFORMATION:","{FFFFFF}Commands: Type /commands for a list of Terrorist commands.\n{FFFFFF}Job: To blow things up in San Fierro.\n{FFFFFF}You can buy C4 from the bomb shop to use in your terrorism.\n{FFFFFF}Use /tskill to see your terrorism level and what you can blow up.\n{FFFFFF}Please remember to abide by the server /rules, or you may be banned.","Ok","Cancel");
                GivePlayerWeapon(playerid,6,1);
                GivePlayerWeapon(playerid,24,200);
                GivePlayerWeapon(playerid,28,300);
                GivePlayerWeapon(playerid,31,450);
                GivePlayerWeapon(playerid,27,450);
                gTeam[playerid] = TEAM_TERRO;
                SetPlayerToTeamColour(playerid);
                CanChooseSkill[playerid] =0;
            }
        }
    }
    return 1;
}
Reply
#3

it just crach my pawno -_-?
Reply
#4

Wrong Script
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)