05.12.2010, 15:25
My script:
Problem is that object doesnt show when Im holding M4a1.
And i dont know what "Scale X, Scale y ,Scale z" is, so i just put it 0.
pawn Код:
public OnPlayerUpdate(playerid)
{
if(GetPlayerWeapon(playerid) == 31) SetPlayerAttachedObject ( playerid,1, 18643, 6, 0.303196, -0.011263, 0.074784,0.000000, 355.239196, 354.891784,0,0,0 ); // object doesnt show in game
if(GetPlayerWeapon(playerid) == 38) Kick(playerid); // works fine
return 1;
}
And i dont know what "Scale X, Scale y ,Scale z" is, so i just put it 0.