if(pickupid=
#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


Messages In This Thread
if(pickupid= - by s3ek - 13.02.2015, 18:06
Re: if(pickupid= - by s3ek - 13.02.2015, 18:33
Re: if(pickupid= - by MBilal - 13.02.2015, 18:35
Re: if(pickupid= - by s3ek - 13.02.2015, 18:52
Re: if(pickupid= - by MBilal - 13.02.2015, 19:38
Re: if(pickupid= - by s3ek - 13.02.2015, 20:14
Re: if(pickupid= - by MBilal - 13.02.2015, 20:21
Re: if(pickupid= - by ReD_HunTeR - 13.02.2015, 20:48

Forum Jump:


Users browsing this thread: 1 Guest(s)