what should i do in the loop to fix that?
btw, if you do something like this, and the entity or the id leaves the game, wouldn't it result in a crash or error?
also if you set it twice for a player, like, if you make a set a task every one second to set the attachment, and the attachment is removed only after 2 seconds, what would happen?
PHP Code:
message_begin(MSG_ONE_UNRELIABLE, SVC_TEMPENTITY, _, id)
write_byte(TE_PLAYERATTACHMENT)
write_byte(entity)
write_coord(45)
write_short(iSprite)
write_short(4000)
message_end()