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


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)