Armour object problem - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Armour object problem (
/showthread.php?tid=320392)
Armour object problem -
viddo - 22.02.2012
Okay so i made a command when the player types it he gets the object fixed on him but the problem is, It doesnt fit any skin, how can i make the armour object "373" fit on all skins
Code:
SetPlayerAttachedObject(playerid, 3,373,1,0.3,-0.0,-0.1,70.0,25.0,35.0);
Re : Armour object problem -
BigBaws - 22.02.2012
can Helps You
#define Armour_INDEX 5
Code:
forward ArmourUpdate();
public ArmourUpdate()
{
for(new i=0; i<=GetMaxPlayers(); i++)
{
GetPlayerArmour(i, ArmourStats[i]);
if( ArmourStats[i] > 0.0 && ArmourUsed[i] == 0)
{
ArmourUsed[i] = 1;
SetPlayerAttachedObject(i, Armour_INDEX, 373, 1, 0.286006, -0.038657, -0.158132, 67.128456, 21.916156, 33.972290, 1.000000, 1.000000, 1.000000 );
}
else if( ArmourStats[i] == 0.0 && ArmourUsed[i] == 1)
{
ArmourUsed[i] = 0;
RemovePlayerAttachedObject(i, Armour_INDEX);
}
}
return 1;
}