02.05.2012, 15:33
Quisiese que
Por ejemplo al tener el arma 5 (M4/AK47) Guardada se "SetPlayerAttachedObject" el objeto 355 en la espalda
Pero no funciona.. Lo he colocado en OnPlayerUpdate pero no actualiza
Por ejemplo al tener el arma 5 (M4/AK47) Guardada se "SetPlayerAttachedObject" el objeto 355 en la espalda
pawn Код:
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
{
new Arma[MAX_PLAYERS],Bala[MAX_PLAYERS];
GetPlayerWeaponData(playerid, 5, Arma[playerid], Bala[playerid]);
if(Arma[playerid] == 30 && Bala[playerid] >= 1)//Ak-47
{
if(GetPlayerWeapon(playerid) == 30) RemovePlayerAttachedObject(playerid,5);
else SetPlayerAttachedObject(playerid, 5, 355, 1, -0.060921, -0.141673, 0.000000, 0.000000, 35.362735, 0.000000);
}
}
Pero no funciona.. Lo he colocado en OnPlayerUpdate pero no actualiza