dadee
Новичок
Как сделать так чтобы проверка была на все аксессуары?:
Я сделал при спавне проверку на аксессуары и если что-то из этого у игрока есть то выдаётся аксессуар, но выдаётся всего один даже если их было больше. (может быть я не правильно объяснил).
Я сделал при спавне проверку на аксессуары и если что-то из этого у игрока есть то выдаётся аксессуар, но выдаётся всего один даже если их было больше. (может быть я не правильно объяснил).
Pawn:
// проверка и выдача аксессуаров
if(PlayerInfo[playerid][pSlot5] == 18963)
{
SetPlayerAttachedObject(objectplayerid, 1, 1276, 1, 0.0409, -0.1249, 0.0000, 176.2000, 92.6999, -91.5999, 1.0000, 1.0000, 1.0000, 0, 0);
}
else if(PlayerInfo[playerid][pSlot5] == 3524)
{
SetPlayerAttachedObject(objectplayerid, 1, 1276, 1, 0.0409, -0.1249, 0.0000, 176.2000, 92.6999, -91.5999, 1.0000, 1.0000, 1.0000, 0, 0);
}
else if(PlayerInfo[playerid][pSlot1] == 3534)
{
SetPlayerAttachedObject(objectplayerid, 1, 1276, 1, 0.0409, -0.1249, 0.0000, 176.2000, 92.6999, -91.5999, 1.0000, 1.0000, 1.0000, 0, 0);
}
else if(PlayerInfo[playerid][pSlot5] == 3082)
{
SetPlayerAttachedObject(objectplayerid, 1, 1276, 1, 0.0409, -0.1249, 0.0000, 176.2000, 92.6999, -91.5999, 1.0000, 1.0000, 1.0000, 0, 0);
}
else if(PlayerInfo[playerid][pSlot1] == 18963)
{
SetPlayerAttachedObject(objectplayerid, 1, 1276, 1, 0.0409, -0.1249, 0.0000, 176.2000, 92.6999, -91.5999, 1.0000, 1.0000, 1.0000, 0, 0);
}
else if(PlayerInfo[playerid][pSlot3] == 1881)
{
SetPlayerAttachedObject(objectplayerid, 1, 1276, 1, 0.0409, -0.1249, 0.0000, 176.2000, 92.6999, -91.5999, 1.0000, 1.0000, 1.0000, 0, 0);
}
else if(PlayerInfo[playerid][pSlot2] == 19351)
{
SetPlayerAttachedObject(objectplayerid, 1, 1276, 1, 0.0409, -0.1249, 0.0000, 176.2000, 92.6999, -91.5999, 1.0000, 1.0000, 1.0000, 0, 0);
}
else if(PlayerInfo[playerid][pSlot1] == 14611)
{
SetPlayerAttachedObject(objectplayerid, 1, 1276, 1, 0.0409, -0.1249, 0.0000, 176.2000, 92.6999, -91.5999, 1.0000, 1.0000, 1.0000, 0, 0);
}
else if(PlayerInfo[playerid][pSlot6] == 19351)
{
SetPlayerAttachedObject(objectplayerid, 1, 1276, 1, 0.0409, -0.1249, 0.0000, 176.2000, 92.6999, -91.5999, 1.0000, 1.0000, 1.0000, 0, 0);
}
else if(PlayerInfo[playerid][pSlot4] == 11712)
{
SetPlayerAttachedObject(objectplayerid, 1, 1276, 1, 0.0409, -0.1249, 0.0000, 176.2000, 92.6999, -91.5999, 1.0000, 1.0000, 1.0000, 0, 0);
}
else if(PlayerInfo[playerid][pSlot5] == 11712)
{
SetPlayerAttachedObject(objectplayerid, 1, 1276, 1, 0.0409, -0.1249, 0.0000, 176.2000, 92.6999, -91.5999, 1.0000, 1.0000, 1.0000, 0, 0);
}
else if(PlayerInfo[playerid][pSlot2] == 1366)
{
SetPlayerAttachedObject(playerid, 3, 1366, 14, 0.0469, 0.0160, -0.0399, 17.2000, 175.9997, 114.3000, 2.7000, 1.3129, 0.0389, 0, 0);
}
else if(PlayerInfo[playerid][pSlot1] == 19135)
{
SetPlayerAttachedObject(playerid, 6, 19135, 2, 0.1790, 0.0089, 0.0189, -137.8999, -79.6999, 16.1999, 1.4059, 1.4120, 0.3659, -1, -16777216);
}
else if(PlayerInfo[playerid][pSlot2] == 19336)
{
SetPlayerAttachedObject(playerid, 4, 19336, 1, 0.3540, -0.0170, 0.1860, 0.0000, 86.6000, 0.0000, 0.0090, 0.0090, 0.0090, -1, -1);
}
else if(PlayerInfo[playerid][pSlot1] == 1602)
{
SetPlayerAttachedObject(playerid, 6, 1602, 2, 0.2779, 0.0399, 0.0000, -32.5000, 76.9000, -73.5000, 0.6930, 0.6599, 0.0599, -13882130, -13882130);
}
else if(PlayerInfo[playerid][pSlot6] == 18658)
{
SetPlayerAttachedObject(playerid, 0, 18658, 2, 0.0619, -0.0320, -0.0779, -4.4999, 0.0000, -0.0999, 0.0809, 0.0489, 0.1029, 0, 0);
}
else if(PlayerInfo[playerid][pSlot5] == 1607)
{
SetPlayerAttachedObject(playerid, 1, 1607, 1, 0.1219, -0.2399, 0.0089, 87.6000, 21.9000, -91.2000, 0.2509, 0.1499, 0.2060, -7651289, -7651289);
return 1;
}
