Sprite edit
How could i manipulate the sprite of only a certain player, not everyones?
ie: Code:
spr = get_user_msgid( "someSprite" ); |
Re: Sprite edit
3rd input variable is the player id:
Code:
public Message_spr(msgid, dest, id)If it doesn't seem to work, make sure it's beeing sent to each player, print a debug message with dest and id variables (dest beeing MSG_* defines from message_const.inc) |
Re: Sprite edit
I have no idea how this filtering works how do you make it?. I tried:
Code:
public Message_Powerup(msgid, dest, id) |
Re: Sprite edit
id is the player's entity from 1 to 32, 0 is the server.
You don't just hardcode the values because any player can be entity id. You can toggle sprites on/off using a command for example: Code:
#include <amxmodx> |
Re: Sprite edit
It didn't seem to work. It doesn't identify each players but treats them in a similar fashion imo. I use pl[] bool array to see which color to show for each player. But i found out the only value that matters is pl[0] and when it is true, it changes the color for all players vice versa. I wonder what goes wrong? If pl[1] = true then it should change the color only for player1.
Ideas? Anyway are there other methods to manipulate sprite colors and other values? Code:
|
Re: Sprite edit
You might want to learn to indent your code... too many random spaces there.
Next, if your initial code worked, this should work too... I don't know ESF's messages so I can't help you there. |
Re: Sprite edit
Can someone give an example how to edit sprite colors,
for example in CS if you would change the color of the smoke grenade, so that each player had a different color? |
Re: Sprite edit
There's a plugin that changes smoke's color, if you're interested how he did it, just look into it's source.
|
| All times are GMT -4. The time now is 23:29. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.