if(pickupid=
#1

on public OnPlayerPickUpDynamicPickup(playerid, pickupid)
PHP код:
    if(pickupid==Female)
    {
    
ShowPlayerDialog(playerid,DIALOGID3+51,DIALOG_STYLE_LIST"~~~~~~~~~~~~~Female Skins~~~~~~~~~~~~~~","1.Normal Ped  [ID:40]\n2.Casino Worker  [ID:11]\n3.Normal Ped  [ID:12]\n4.Normal Ped  [ID:41]\n5.Normal Ped  [ID:76]\n6.Secretary  [ID:150]\n7.Normal Ped  [ID:169]\n8.Katie Zhan  [ID:193]\n9.Secretary  [ID:219]\n10.Catalina  [ID:298]\n11.Normal Ped  [ID:225]\n12.Secretary  [ID:148]\n13.Normal Ped  [ID:69]\n14.Normal Ped  [ID:263]\n15.Denise Robinson  [ID:195]","Buy Skin","Exit");
       return 
1;
    }
    if(
pickupid==Male)
    {
    
ShowPlayerDialog(playerid,DIALOGID3+52,DIALOG_STYLE_LIST"~~~~~~~~~~~~~Male Skins~~~~~~~~~~~~~~","1.Maccer  [ID:2]\n2.Normal Ped  [ID:19]\n3.Madd Dogg's Manager  [ID:20]\n4.Normal Ped  [ID:21]\n5.Big Smoke  [ID:269]\n6.Sweet  [ID:270]\n7.Ryder  [ID:271]\n8.Drug Dealer  [ID:28]\n9.Drug Dealer  [ID:29]\n10. Boxer  [ID:81]\n11.Skeelering  [ID:99]\n12.Ammu-Nation Salesmen  [ID:179]\n13.The Mafia  [ID:124]\n14.Normal Ped  [ID:184]\n15.Normal Ped  [ID:188]\n16.Normal Ped  [ID:170]","Buy Skin","Exit");
       return 
1;
    } 
pickupid Female + Male not call DIALOGID3.... when i go to pickup not call dialog ?
Reply
#2

help me
Reply
#3

show the dialogs ...
Reply
#4

Quote:
Originally Posted by MBilal
Посмотреть сообщение
show the dialogs ...
PHP код:
    if (dialogid==DIALOGID3+51 && response==1)
       {
        switch(
listitem)
         {
            case 
0:
            {
                
SetPlayerSkin(playerid,40);
                
GivePlayerMoney(playerid,-1000);
                
SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1000 »");
            }
            case 
1:
            {
                
SetPlayerSkin(playerid,11);
                
GivePlayerMoney(playerid,-1150);
                
SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1150 »");
            }
            case 
2:
            {
                
SetPlayerSkin(playerid,12);
                
GivePlayerMoney(playerid,-1000);
                
SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1000 »");
            }
            case 
3:
            {
                
SetPlayerSkin(playerid,41);
                
GivePlayerMoney(playerid,-1000);
                
SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1000 »");
            }
            case 
4:
            {
                
SetPlayerSkin(playerid,76);
                
GivePlayerMoney(playerid,-1150);
                
SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1150 »");
            }
            case 
5:
            {
                
SetPlayerSkin(playerid,150);
                
GivePlayerMoney(playerid,-1050);
                
SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1050 »");
            }
            case 
6:
            {
                
SetPlayerSkin(playerid,169);
                
GivePlayerMoney(playerid,-1150);
                
SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1150 »");
            }
            case 
7:
            {
                
SetPlayerSkin(playerid,193);
                
GivePlayerMoney(playerid,-1000);
                
SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1000 »");
            }
            case 
8:
            {
                
SetPlayerSkin(playerid,219);
                
GivePlayerMoney(playerid,-1150);
                
SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1150 »");
            }
            case 
9:
            {
                
SetPlayerSkin(playerid,298);
                
GivePlayerMoney(playerid,-1000);
                
SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1000 »");
            }
            case 
10:
            {
                
SetPlayerSkin(playerid,225);
                
GivePlayerMoney(playerid,-1150);
                
SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1150 »");
            }
            case 
11:
            {
                
SetPlayerSkin(playerid,148);
                
GivePlayerMoney(playerid,-1050);
                
SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1050 »");
            }
            case 
12:
            {
                
SetPlayerSkin(playerid,69);
                
GivePlayerMoney(playerid,-1150);
                
SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1150 »");
            }
            case 
13:
            {
                
SetPlayerSkin(playerid,263);
                
GivePlayerMoney(playerid,-1000);
                
SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1000 »");
            }
            case 
14:
            {
                
SetPlayerSkin(playerid,195);
                
GivePlayerMoney(playerid,-1050);
                
SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1050 »");
            }
        }
    }
    if (
dialogid==DIALOGID3+52 && response==1)
       {
        if(
response)
        {
        switch(
listitem)
         {
            case 
0:
            {
                
SetPlayerSkin(playerid,2);
                
GivePlayerMoney(playerid,-1000);
                
SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1000 »");
            }
            case 
1:
            {
                
SetPlayerSkin(playerid,19);
                
GivePlayerMoney(playerid,-1150);
                
SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1150 »");
            }
            case 
2:
            {
                
SetPlayerSkin(playerid,20);
                
GivePlayerMoney(playerid,-1000);
                
SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1000 »");
            }
            case 
3:
            {
                
SetPlayerSkin(playerid,21);
                
GivePlayerMoney(playerid,-1050);
                
SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1050 »");
            }
            case 
4:
            {
                
SetPlayerSkin(playerid,269);
                
GivePlayerMoney(playerid,-1000);
                
SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1000 »");
            }
            case 
5:
            {
                
SetPlayerSkin(playerid,270);
                
GivePlayerMoney(playerid,-1050);
                
SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1050 »");
            }
            case 
6:
            {
                
SetPlayerSkin(playerid,271);
                
GivePlayerMoney(playerid,-1150);
                
SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1150 »");
            }
            case 
7:
            {
                
SetPlayerSkin(playerid,28);
                
GivePlayerMoney(playerid,-1050);
                
SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1050 »");
            }
            case 
8:
            {
                
SetPlayerSkin(playerid,29);
                
GivePlayerMoney(playerid,-1000);
                
SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1000 »");
            }
            case 
9:
            {
                
SetPlayerSkin(playerid,81);
                
GivePlayerMoney(playerid,-1000);
                
SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1000 »");
            }
            case 
10:
            {
                
SetPlayerSkin(playerid,99);
                
GivePlayerMoney(playerid,-1050);
                
SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1050 »");
            }
            case 
11:
            {
                
SetPlayerSkin(playerid,179);
                
GivePlayerMoney(playerid,-1000);
                
SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1000 »");
            }
            case 
12:
            {
                
SetPlayerSkin(playerid,124);
                
GivePlayerMoney(playerid,-1150);
                
SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1150 »");
            }
            case 
13:
            {
                
SetPlayerSkin(playerid,184);
                
GivePlayerMoney(playerid,-1000);
                
SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1000 »");
            }
            case 
14:
            {
                
SetPlayerSkin(playerid,188);
                
GivePlayerMoney(playerid,-1150);
                
SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1150 »");
            }
            case 
15:
            {
                
SetPlayerSkin(playerid,170);
                
GivePlayerMoney(playerid,-1050);
                
SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1050 »");
            }
        }
    }
    return 
1;

Reply
#5

Код:
    if (dialogid==DIALOGID3+51 ) 
       { 
  if(response) 
{
        switch(listitem) 
         { 
            case 0: 
            { 
                SetPlayerSkin(playerid,40); 
                GivePlayerMoney(playerid,-1000); 
                SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1000 »"); 


            } 
            case 1: 
            { 
                SetPlayerSkin(playerid,11); 
                GivePlayerMoney(playerid,-1150); 
                SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1150 »"); 


            } 
            case 2: 
            { 
                SetPlayerSkin(playerid,12); 
                GivePlayerMoney(playerid,-1000); 
                SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1000 »"); 
            } 
            case 3: 
            { 
                SetPlayerSkin(playerid,41); 
                GivePlayerMoney(playerid,-1000); 
                SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1000 »"); 
            } 
            case 4: 
            { 
                SetPlayerSkin(playerid,76); 
                GivePlayerMoney(playerid,-1150); 
                SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1150 »"); 
            } 
            case 5: 
            { 
                SetPlayerSkin(playerid,150); 
                GivePlayerMoney(playerid,-1050); 
                SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1050 »"); 
            } 
            case 6: 
            { 
                SetPlayerSkin(playerid,169); 
                GivePlayerMoney(playerid,-1150); 
                SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1150 »"); 
            } 
            case 7: 
            { 
                SetPlayerSkin(playerid,193); 
                GivePlayerMoney(playerid,-1000); 
                SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1000 »"); 
            } 
            case 8: 
            { 
                SetPlayerSkin(playerid,219); 
                GivePlayerMoney(playerid,-1150); 
                SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1150 »"); 
            } 
            case 9: 
            { 
                SetPlayerSkin(playerid,298); 
                GivePlayerMoney(playerid,-1000); 
                SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1000 »"); 
            } 
            case 10: 
            { 
                SetPlayerSkin(playerid,225); 
                GivePlayerMoney(playerid,-1150); 
                SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1150 »"); 
            } 
            case 11: 
            { 
                SetPlayerSkin(playerid,148); 
                GivePlayerMoney(playerid,-1050); 
                SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1050 »"); 
            } 
            case 12: 
            { 
                SetPlayerSkin(playerid,69); 
                GivePlayerMoney(playerid,-1150); 
                SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1150 »"); 
            } 
            case 13: 
            { 
                SetPlayerSkin(playerid,263); 
                GivePlayerMoney(playerid,-1000); 
                SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1000 »"); 
            } 
            case 14: 
            { 
                SetPlayerSkin(playerid,195); 
                GivePlayerMoney(playerid,-1050); 
                SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1050 »"); 
            } 
        } 
    } 
}
    if (dialogid==DIALOGID3+52 ) 
       { 
        if(response) 
        { 
        switch(listitem) 
         { 
            case 0: 
            { 
                SetPlayerSkin(playerid,2); 
                GivePlayerMoney(playerid,-1000); 
                SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1000 »"); 


            } 
            case 1: 
            { 
                SetPlayerSkin(playerid,19); 
                GivePlayerMoney(playerid,-1150); 
                SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1150 »"); 


            } 
            case 2: 
            { 
                SetPlayerSkin(playerid,20); 
                GivePlayerMoney(playerid,-1000); 
                SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1000 »"); 
            } 
            case 3: 
            { 
                SetPlayerSkin(playerid,21); 
                GivePlayerMoney(playerid,-1050); 
                SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1050 »"); 
            } 
            case 4: 
            { 
                SetPlayerSkin(playerid,269); 
                GivePlayerMoney(playerid,-1000); 
                SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1000 »"); 
            } 
            case 5: 
            { 
                SetPlayerSkin(playerid,270); 
                GivePlayerMoney(playerid,-1050); 
                SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1050 »"); 
            } 
            case 6: 
            { 
                SetPlayerSkin(playerid,271); 
                GivePlayerMoney(playerid,-1150); 
                SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1150 »"); 
            } 
            case 7: 
            { 
                SetPlayerSkin(playerid,28); 
                GivePlayerMoney(playerid,-1050); 
                SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1050 »"); 
            } 
            case 8: 
            { 
                SetPlayerSkin(playerid,29); 
                GivePlayerMoney(playerid,-1000); 
                SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1000 »"); 
            } 
            case 9: 
            { 
                SetPlayerSkin(playerid,81); 
                GivePlayerMoney(playerid,-1000); 
                SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1000 »"); 
            } 
            case 10: 
            { 
                SetPlayerSkin(playerid,99); 
                GivePlayerMoney(playerid,-1050); 
                SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1050 »"); 
            } 
            case 11: 
            { 
                SetPlayerSkin(playerid,179); 
                GivePlayerMoney(playerid,-1000); 
                SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1000 »"); 
            } 
            case 12: 
            { 
                SetPlayerSkin(playerid,124); 
                GivePlayerMoney(playerid,-1150); 
                SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1150 »"); 
            } 
            case 13: 
            { 
                SetPlayerSkin(playerid,184); 
                GivePlayerMoney(playerid,-1000); 
                SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1000 »"); 
            } 
            case 14: 
            { 
                SetPlayerSkin(playerid,188); 
                GivePlayerMoney(playerid,-1150); 
                SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1150 »"); 
            } 
            case 15: 
            { 
                SetPlayerSkin(playerid,170); 
                GivePlayerMoney(playerid,-1050); 
                SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1050 »"); 
            } 
        } 
    } 
    return 1; 
}
try this.
Reply
#6

Quote:
Originally Posted by MBilal
Посмотреть сообщение
show the dialogs ...
Quote:
Originally Posted by MBilal
Посмотреть сообщение
Код:
    if (dialogid==DIALOGID3+51 ) 
       { 
  if(response) 
{
        switch(listitem) 
         { 
            case 0: 
            { 
                SetPlayerSkin(playerid,40); 
                GivePlayerMoney(playerid,-1000); 
                SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1000 »"); 


            } 
            case 1: 
            { 
                SetPlayerSkin(playerid,11); 
                GivePlayerMoney(playerid,-1150); 
                SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1150 »"); 


            } 
            case 2: 
            { 
                SetPlayerSkin(playerid,12); 
                GivePlayerMoney(playerid,-1000); 
                SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1000 »"); 
            } 
            case 3: 
            { 
                SetPlayerSkin(playerid,41); 
                GivePlayerMoney(playerid,-1000); 
                SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1000 »"); 
            } 
            case 4: 
            { 
                SetPlayerSkin(playerid,76); 
                GivePlayerMoney(playerid,-1150); 
                SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1150 »"); 
            } 
            case 5: 
            { 
                SetPlayerSkin(playerid,150); 
                GivePlayerMoney(playerid,-1050); 
                SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1050 »"); 
            } 
            case 6: 
            { 
                SetPlayerSkin(playerid,169); 
                GivePlayerMoney(playerid,-1150); 
                SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1150 »"); 
            } 
            case 7: 
            { 
                SetPlayerSkin(playerid,193); 
                GivePlayerMoney(playerid,-1000); 
                SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1000 »"); 
            } 
            case 8: 
            { 
                SetPlayerSkin(playerid,219); 
                GivePlayerMoney(playerid,-1150); 
                SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1150 »"); 
            } 
            case 9: 
            { 
                SetPlayerSkin(playerid,298); 
                GivePlayerMoney(playerid,-1000); 
                SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1000 »"); 
            } 
            case 10: 
            { 
                SetPlayerSkin(playerid,225); 
                GivePlayerMoney(playerid,-1150); 
                SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1150 »"); 
            } 
            case 11: 
            { 
                SetPlayerSkin(playerid,148); 
                GivePlayerMoney(playerid,-1050); 
                SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1050 »"); 
            } 
            case 12: 
            { 
                SetPlayerSkin(playerid,69); 
                GivePlayerMoney(playerid,-1150); 
                SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1150 »"); 
            } 
            case 13: 
            { 
                SetPlayerSkin(playerid,263); 
                GivePlayerMoney(playerid,-1000); 
                SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1000 »"); 
            } 
            case 14: 
            { 
                SetPlayerSkin(playerid,195); 
                GivePlayerMoney(playerid,-1050); 
                SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1050 »"); 
            } 
        } 
    } 
}
    if (dialogid==DIALOGID3+52 ) 
       { 
        if(response) 
        { 
        switch(listitem) 
         { 
            case 0: 
            { 
                SetPlayerSkin(playerid,2); 
                GivePlayerMoney(playerid,-1000); 
                SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1000 »"); 


            } 
            case 1: 
            { 
                SetPlayerSkin(playerid,19); 
                GivePlayerMoney(playerid,-1150); 
                SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1150 »"); 


            } 
            case 2: 
            { 
                SetPlayerSkin(playerid,20); 
                GivePlayerMoney(playerid,-1000); 
                SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1000 »"); 
            } 
            case 3: 
            { 
                SetPlayerSkin(playerid,21); 
                GivePlayerMoney(playerid,-1050); 
                SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1050 »"); 
            } 
            case 4: 
            { 
                SetPlayerSkin(playerid,269); 
                GivePlayerMoney(playerid,-1000); 
                SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1000 »"); 
            } 
            case 5: 
            { 
                SetPlayerSkin(playerid,270); 
                GivePlayerMoney(playerid,-1050); 
                SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1050 »"); 
            } 
            case 6: 
            { 
                SetPlayerSkin(playerid,271); 
                GivePlayerMoney(playerid,-1150); 
                SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1150 »"); 
            } 
            case 7: 
            { 
                SetPlayerSkin(playerid,28); 
                GivePlayerMoney(playerid,-1050); 
                SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1050 »"); 
            } 
            case 8: 
            { 
                SetPlayerSkin(playerid,29); 
                GivePlayerMoney(playerid,-1000); 
                SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1000 »"); 
            } 
            case 9: 
            { 
                SetPlayerSkin(playerid,81); 
                GivePlayerMoney(playerid,-1000); 
                SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1000 »"); 
            } 
            case 10: 
            { 
                SetPlayerSkin(playerid,99); 
                GivePlayerMoney(playerid,-1050); 
                SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1050 »"); 
            } 
            case 11: 
            { 
                SetPlayerSkin(playerid,179); 
                GivePlayerMoney(playerid,-1000); 
                SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1000 »"); 
            } 
            case 12: 
            { 
                SetPlayerSkin(playerid,124); 
                GivePlayerMoney(playerid,-1150); 
                SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1150 »"); 
            } 
            case 13: 
            { 
                SetPlayerSkin(playerid,184); 
                GivePlayerMoney(playerid,-1000); 
                SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1000 »"); 
            } 
            case 14: 
            { 
                SetPlayerSkin(playerid,188); 
                GivePlayerMoney(playerid,-1150); 
                SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1150 »"); 
            } 
            case 15: 
            { 
                SetPlayerSkin(playerid,170); 
                GivePlayerMoney(playerid,-1050); 
                SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1050 »"); 
            } 
        } 
    } 
    return 1; 
}
try this.

not work
Reply
#7

You using any filterscript that got dialogs?
Reply
#8

pawn Код:
new female, male; //Variables

public OnGameModeInit()
{
   female = CreatePickup(model, type, Float:X, Float:Y, Float:Z, Virtualworld); //Edit This Line
   male = CreatePickup(model, type, Float:X, Float:Y, Float:Z, Virtualworld); //Edit this Line
   return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
   if(pickupid==Female)
   {
      ShowPlayerDialog(playerid,DIALOGID3+51,DIALOG_STYLE_LIST, "~~~~~~~~~~~~~Female Skins~~~~~~~~~~~~~~","1.Normal Ped  [ID:40]\n2.Casino Worker  [ID:11]\n3.Normal Ped  [ID:12]\n4.Normal Ped  [ID:41]\n5.Normal Ped  [ID:76]\n6.Secretary  [ID:150]\n7.Normal Ped  [ID:169]\n8.Katie Zhan  [ID:193]\n9.Secretary  [ID:219]\n10.Catalina  [ID:298]\n11.Normal Ped  [ID:225]\n12.Secretary  [ID:148]\n13.Normal Ped  [ID:69]\n14.Normal Ped  [ID:263]\n15.Denise Robinson  [ID:195]","Buy Skin","Exit");
      return 1;
   }
   if(pickupid==Male)
   {
      ShowPlayerDialog(playerid,DIALOGID3+52,DIALOG_STYLE_LIST, "~~~~~~~~~~~~~Male Skins~~~~~~~~~~~~~~","1.Maccer  [ID:2]\n2.Normal Ped  [ID:19]\n3.Madd Dogg's Manager  [ID:20]\n4.Normal Ped  [ID:21]\n5.Big Smoke  [ID:269]\n6.Sweet  [ID:270]\n7.Ryder  [ID:271]\n8.Drug Dealer  [ID:28]\n9.Drug Dealer  [ID:29]\n10. Boxer  [ID:81]\n11.Skeelering  [ID:99]\n12.Ammu-Nation Salesmen  [ID:179]\n13.The Mafia  [ID:124]\n14.Normal Ped  [ID:184]\n15.Normal Ped  [ID:188]\n16.Normal Ped  [ID:170]","Buy Skin","Exit");
      return 1;
   }
   return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid==DIALOGID3+51 && response)
    {
       switch(listitem)
       {
          case 0:
          {
             SetPlayerSkin(playerid,40);
             GivePlayerMoney(playerid,-1000);
             SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1000 »");
          }
          case 1:
          {
             SetPlayerSkin(playerid,11);
             GivePlayerMoney(playerid,-1150);
             SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1150 »");
          }
          case 2:
          {
             SetPlayerSkin(playerid,12);
             GivePlayerMoney(playerid,-1000);
             SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1000 »");
          }
          case 3:
          {
             SetPlayerSkin(playerid,41);
             GivePlayerMoney(playerid,-1000);
             SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1000 »");
          }
          case 4:
          {
             SetPlayerSkin(playerid,76);
             GivePlayerMoney(playerid,-1150);
             SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1150 »");
          }
          case 5:
          {
             SetPlayerSkin(playerid,150);
             GivePlayerMoney(playerid,-1050);
             SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1050 »");
          }
          case 6:
          {
             SetPlayerSkin(playerid,169);
             GivePlayerMoney(playerid,-1150);
             SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1150 »");
          }
          case 7:
          {
             SetPlayerSkin(playerid,193);
             GivePlayerMoney(playerid,-1000);
             SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1000 »");
          }
          case 8:
          {
             SetPlayerSkin(playerid,219);
             GivePlayerMoney(playerid,-1150);
             SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1150 »");
          }
          case 9:
          {
             SetPlayerSkin(playerid,298);
             GivePlayerMoney(playerid,-1000);
             SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1000 »");
          }
          case 10:
          {
             SetPlayerSkin(playerid,225);
             GivePlayerMoney(playerid,-1150);
             SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1150 »");
          }
          case 11:
          {
             SetPlayerSkin(playerid,148);
             GivePlayerMoney(playerid,-1050);
             SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1050 »");
          }
          case 12:
          {
             SetPlayerSkin(playerid,69);
             GivePlayerMoney(playerid,-1150);
             SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1150 »");
          }
          case 13:
          {
             SetPlayerSkin(playerid,263);
             GivePlayerMoney(playerid,-1000);
             SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1000 »");
          }
          case 14:
          {
             SetPlayerSkin(playerid,195);
             GivePlayerMoney(playerid,-1050);
             SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1050 »");
          }
       }
    }
    if(dialogid==DIALOGID3+52 && response)
    {
       switch(listitem)
       {
          case 0:
          {
             SetPlayerSkin(playerid,2);
             GivePlayerMoney(playerid,-1000);
             SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1000 »");
          }
          case 1:
          {
             SetPlayerSkin(playerid,19);
             GivePlayerMoney(playerid,-1150);
             SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1150 »");
          }
          case 2:
          {
             SetPlayerSkin(playerid,20);
             GivePlayerMoney(playerid,-1000);
             SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1000 »");
          }
          case 3:
          {
             SetPlayerSkin(playerid,21);
             GivePlayerMoney(playerid,-1050);
             SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1050 »");
          }
          case 4:
          {
             SetPlayerSkin(playerid,269);
             GivePlayerMoney(playerid,-1000);
             SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1000 »");
          }
          case 5:
          {
             SetPlayerSkin(playerid,270);
             GivePlayerMoney(playerid,-1050);
             SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1050 »");
          }
          case 6:
          {
             SetPlayerSkin(playerid,271);
             GivePlayerMoney(playerid,-1150);
             SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1150 »");
          }
          case 7:
          {
             SetPlayerSkin(playerid,28);
             GivePlayerMoney(playerid,-1050);
             SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1050 »");
          }
          case 8:
          {
             SetPlayerSkin(playerid,29);
             GivePlayerMoney(playerid,-1000);
             SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1000 »");
          }
          case 9:
          {
             SetPlayerSkin(playerid,81);
             GivePlayerMoney(playerid,-1000);
             SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1000 »");
          }
          case 10:
          {
             SetPlayerSkin(playerid,99);
             GivePlayerMoney(playerid,-1050);
             SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1050 »");
          }
          case 11:
          {
             SetPlayerSkin(playerid,179);
             GivePlayerMoney(playerid,-1000);
             SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1000 »");
          }
          case 12:
          {
             SetPlayerSkin(playerid,124);
             GivePlayerMoney(playerid,-1150);
             SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1150 »");
          }
          case 13:
          {
             SetPlayerSkin(playerid,184);
             GivePlayerMoney(playerid,-1000);
             SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1000 »");
          }
          case 14:
          {
             SetPlayerSkin(playerid,188);
             GivePlayerMoney(playerid,-1150);
             SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1150 »");
          }
          case 15:
          {
             SetPlayerSkin(playerid,170);
             GivePlayerMoney(playerid,-1050);
             SendClientMessage(playerid,0xFF9900AA,"« You have bought this dress for $1050 »");
          }
       }
    }
    return 1;
}
Edit this both lines:
female = CreatePickup(model, type, Float:X, Float:Y, Float:Z, -1); //Edit This Line
male = CreatePickup(model, type, Float:X, Float:Y, Float:Z, -1); //Edit this Line

Change model
Change type
Add X Pos.
Add Y Pos.
Add Z Pos
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)