Ayuda con objeto.
#1

Intentй poner para cuando tengas mas del 1% de chaleco, aparezca un toy en el PJ. usй esto.

Код:
new Float:armour;
	GetPlayerArmour(playerid, armour);
	SetPlayerAttachedObject(playerid, 0, 19654, 1, 26.0, 5.99, 0, 1.0, 1.074, 1.083);
Pero al parecer con esto siempre tienes el chaleco sin tener nada de chaleco... їquй hago?
Reply
#2

PHP код:
new
    
Float:armour;
GetPlayerArmour(playeridarmour);
if(
armour 1){
    
SetPlayerAttachedObject(playerid019654126.05.9901.01.0741.083);

Reply
#3

Indefined playerid їquй pasу?
Reply
#4

nada, no has definido eso. En el timer que creaste tienes que aсadir o definir la variable. Ponerlo en OnPlayerUpdate por ejemplo.
Reply
#5

Listo, me ha funcionado, muchas gracias.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)