28.02.2011, 15:41
OK, I think I have the solution:
I'll make this include and post it this evening (This evening in central europe[GMT+1], in this moment is 17.35)
When I post OnPlayerWeaponStateChange this evening you can fix the bug with:
pawn Код:
public OnPlayerWeaponStateChange(playerid, oldweapon, newweapon);
When I post OnPlayerWeaponStateChange this evening you can fix the bug with:
pawn Код:
public OnPlayerWeaponStateChange(playerid, oldweapon, newweapon)
{
if(newweapon != /* ONE OF THE EDITED WEAPONS*/ && newweapon != /* ONE OF THE EDITED WEAPONS*/ && /*ETC*/)
{
RemovePlayerAttachedObject(playerid, 0);
}
if(newweapon == /*EDITED WEAPON*/)
{
SetPlayerAttachedObject(playerid, /*ETC*/);
}
else if(newweapon == /*BLA BLA*/)
{
//Bla bla
}
return 1;
}