Quote:
Originally Posted by pedobear
Thank you very much =).
Now that Part has been finished.
Im now trying to do this:
At first, an IF-Function that makes the Player invisible when hes not moving.
The 2nd, an IF-Function that only CT's can buy the item.
I know how to make players invisible but ive got problems with that both IF-Functions.
Do you know that too?
|
1st: You can check if player speed is 0 and then set the invisibility.
2nd:
Code:
#define fm_get_user_team(%1) get_pdata_int(%1, 114)
enum
{
CS_TEAM_UNASSIGNED = 0,
CS_TEAM_T = 1,
CS_TEAM_CT = 2,
CS_TEAM_SPECTATOR = 3
};
if( fm_get_user_team( id ) == CS_TEAM_T )
{
client_print( id, print_chat, "Only ct's are allowed to buy this item." )
return 1;
}
__________________
[IMG]http://img221.**************/img221/5608/howdyfinnishhq2.jpg[/IMG]