[Duda]HoldingObject
#1

Hola, no se mucho sobre esto y quisiera que alguien me explicara xD
Se que si pongo en la version C los SetPlayerHoldingObject me da error xq tengo q tener los includes de la B. Pero cuando lo hago al entrar y escribir el cmd me dice SERVER: Unknown command.
Pero quisiera si alguien muy amable q sabe me hiciera lo siguiente en un FS y que ande bien:
/Chaleco para ponerse un chaleco, y tambien un casco, /Casco.
Y con la ruedita del mouse para pasar de armas y se pongan atras, etc.
Gracias
Reply
#2

Warning: This function was removed in SA-MP 0.3c. check SetPlayerAttachedObject

No se si aun este, pero dice que en la 0.3c fue removida
Reply
#3

No entiendo porqe la sacaron, a mi me re copaba xD
Reply
#4

Quote:
Originally Posted by [M]xFire
Посмотреть сообщение
Warning: This function was removed in SA-MP 0.3c. check SetPlayerAttachedObject

No se si aun este, pero dice que en la 0.3c fue removida
Quote:
Originally Posted by Wiki
This function was added in SA-MP 0.3b and will not work in earlier versions!
Warning: This function was removed in SA-MP 0.3c. check SetPlayerAttachedObject
Ahн mismo te dice: check SetPlayerAttachedObject
Reply
#5

Probe con SetPlayerAttachedObject pero tira el warning de
pawn Код:
tagmismatch
algo asi
Reply
#6

Quote:
Originally Posted by TiNcH010
Посмотреть сообщение
Probe con SetPlayerAttachedObject pero tira el warning de
pawn Код:
tagmismatch
algo asi
SetPlayerAttachedObjects tiene otros parametros, їquй tal un vistazo a la wiki?
Reply
#7

Fue uno de los grandes cambios en 0.3c.

Usa este cуdigo (y Kye) para transformar los nuevos atached.
pawn Код:
#define SetPlayerHoldingObject(%1,%2,%3,%4,%5,%6,%7,%8,%9) SetPlayerAttachedObject(%1,MAX_PLAYER_ATTACHED_OBJECTS-1,%2,%3,%4,%5,%6,%7,%8,%9)
#define StopPlayerHoldingObject(%1) RemovePlayerAttachedObject(%1,MAX_PLAYER_ATTACHED_OBJECTS-1)
#define IsPlayerHoldingObject(%1) IsPlayerAttachedObjectSlotUsed(%1,MAX_PLAYER_ATTACHED_OBJECTS-1)
No lo he probado.
Reply
#8

Dale lo pruebo y te aviso grax
Reply
#9

Gracias!!! Compile, hice test y me anda al 100%.
Una cosa quisiera saber las ids de los objetos como el chaleco es 373 quisiera saber de los otros xD
Y la ultima cosa es lo otro que pedi Como hago para cuando cambio las armas con la ruedita del mouse se ponga las armas al costado y atras
Reply
#10

https://sampwiki.blast.hk/wiki/Model_ID
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)