25.02.2011, 13:48
(
Last edited by LOLtz120; 03/08/2013 at 11:21 AM.
)
delete
//OnPlayerUpdate
new weapons[13][2], weapid = GetPlayerWeapon(playerid), object;
for(new i = 0; i < 13; i++)
{
GetPlayerWeaponData(playerid, i, weapons[i][0], weapons[i][1]);
}
if(weapid == 34 || weapid == 31 || weapons[5][1] == 0) RemovePlayerAttachedObject(playerid, holdindex);//here
else {
if(weapons[5][0] == 34) object = 358; else if(weapons[5][0] == 31) object = 356;//and here
#define EachSkin(%0,%1,%2,%3,%4,%5) SetPlayerAttachedObject(playerid, holdindex, object, 1, (%0), (%1), (%2), (%3), (%4), (%5), 1.000000, 1.000000, 1.000000);
switch(GetPlayerSkin(playerid))
{
case 0: EachSkin(0.299511, -0.122143, 0.134006, 0.000000, 158.504928, 0.000000)
case 1..2: EachSkin(0.299511, -0.133396, 0.134006, 0.000000, 158.504928, 0.000000)
case 9: EachSkin(0.299511, -0.111301, 0.135122, 0.000000, 158.504928, 0.000000)
case 10: EachSkin(0.236573, -0.121403, 0.135122, 0.000000, 158.504928, 0.000000)
//and so on, but u also have to include the rest of EliranPesahov's filterscript