10.06.2011, 17:09
pawn Код:
new armour[MAX_PLAYERS],saco[MAX_PLAYERS];
public Armadura(playerid) // by [GuN]Nemesis[DN]
{
GetPlayerArmour(playerid, armour[playerid]);
if( armour[playerid] > 0)
{
SetPlayerAttachedObject(playerid, 1,19142,1,0.1,0.05,0.0,0.0,0.0,0.0);//armadura
SetPlayerAttachedObject(playerid, 2,19141,2,0.11,0.0,0.0,0.0,0.0,0.0);//elmo
SetPlayerAttachedObject(playerid, 3, 18917, 2, 0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754);// mascara
}
else if( armour[playerid] == 0)
{
RemovePlayerAttachedObject(playerid,1);
RemovePlayerAttachedObject(playerid,2);
RemovePlayerAttachedObject(playerid,3);
}
return 1;
}
public Saco(playerid) // By [GuN]Nemesis[DN]
{
if(GetPlayerCash(playerid) > 50000)
{
saco[playerid] = SetPlayerAttachedObject( playerid, saco, 1550, 1, 0.024558, -0.279748, -0.060589, 6.105677, 137.291320, 147.132202, 1.019888, 1.000000, 1.000000 );
}
else if(GetPlayerCash(playerid) < 50000)
{
RemovePlayerAttachedObject(playerid, saco[playerid]);
}
return 1;
}