09.12.2014, 00:38
(
Последний раз редактировалось jotajeda; 09.12.2014 в 01:35.
)
Sientate y verifica todo paso y paso y trata de entender todo, para que en un futuro puedas hacerlo tu mismo
pawn Код:
case DIALOG_COINS2:
{
if(response)
{
if(team[playerid] == TEAM_HUMAN)
{
switch(listitem)
{
case 0:
{
if(pInfo[playerid][pCoins] >= 45)
{
pInfo[playerid][pCoins] -= 45;
pInfo[playerid][pKickBackCoin] = 1;
}else SendCoinError(playerid,45);
}
case 1:
{
if(pInfo[playerid][pCoins] >= 40)
{
pInfo[playerid][pCoins] -= 40;
pInfo[playerid][pDamageShotgunCoin] = 1;
}else SendCoinError(playerid,40);
}
case 2:
{
if(pInfo[playerid][pCoins] >= 50)
{
pInfo[playerid][pCoins] -= 50;
pInfo[playerid][pDamageDeagleCoin] = 1;
} else SendCoinError(playerid,50);
}
case 3:
{
if(pInfo[playerid][pCoins] >= 30)
{
pInfo[playerid][pCoins] -= 30;
pInfo[playerid][pDamageMP5Coin] = 1;
} else SendCoinError(playerid,30);
}
case 4:
{
if(pInfo[playerid][pCoins] >= 25)
{
pInfo[playerid][pCoins] -= 20;
pInfo[playerid][pHumanClass] = 0;
pInfo[playerid][pHumanClass] = FEDERALAGENT;
} else SendCoinError(playerid,20);
}
case 5:
{
if(pInfo[playerid][pCoins] >= 30)
{
pInfo[playerid][pCoins] -= 25;
SetPlayerAttachedObject(playerid,0,19142,1,0.028000,0.034000,0.000000,0.000000,0.000000,0.000000,1.063000,1.191999,1.285999);
} else SendCoinError(playerid,25);
}
case 6:
{
if(pInfo[playerid][pCoins] >= 800)
{
pInfo[playerid][pCoins] -= 800;
pInfo[playerid][pVipLevel] = 2;
} else SendCoinError(playerid,800);
}
}//switch
}//if(team[playerid] == TEAM_HUMAN)
}//response
return 1;
}//case DIALOG_COINS2:
//} Una corchea de mбs tenнas.