saytext and /spec problem
Here is my code
PHP Code:
Also I've got another problem. I've found this code http://forums.alliedmods.net/showpos...61&postcount=7 It was working fine but I've discovered that going spec sometimes blocks the player that I am spectating, it's like I spawn inside spectated player and he can't move. After player is blocked this way it says enemy: playername like he was aiming at me. Here is the code i'm using right now PHP Code:
|
Re: saytext and /spec problem
Any ideas? I need to solve this spectator thing. What i want is when player says /spec he is automatically watching another player in first person view and not free look.
|
Re: saytext and /spec problem
didn't see "check" function btw.
also: add(szTmp2,charsmax(szTmp2),"^x03 %s1^x01: %s2"); } add(szTmp2,charsmax(szTmp2),szPrefix); add(szTmp2,charsmax(szTmp2),"^x03 %s1^x01: %s2"); incorrect formatting ("%s %s %s",strin_1,strin_2...) |
Re: saytext and /spec problem
Quote:
What's wrong about this formatting? I do not understand what you mean. It's working, but I need that to work along with modified admin listen(removed admin access- everyone can see everything). |
Re: saytext and /spec problem
you should write variables..
you write %s1,%s2.. but it's wrong. for string always: %s and any of them you should define in variables section. and also ADD procedure doesn't include formatting. you should use format/formatex() before. examle: PHP Code:
|
Re: saytext and /spec problem
Anyway, I have solved the problem just now. I modified this plugin http://forums.alliedmods.net/showthread.php?t=183491 instead, seems to be working fine. Thank you for your help.
Can you see anything wrong with /spec code? |
| All times are GMT -4. The time now is 13:43. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.