Team Name
What should plugin do:
This is CSO Like connect announce to other users. When new player connect on server other players will see this message "name" connected When new player choose team and join the server other players will see this message "name" joined the "teamname" force When player left the server other players will see this message "name" has left the game Problem with my plugin is @ client_putinserver When new player choose a team and class other players don't see "name" joined the "teamname" force PHP Code:
|
Re: Team Name
Quote:
About the code, it is all written wrong. client_putinserver() is called when the player is put in the server, not when they join a team. You are using cmd_target() wrong, the variable "player" is always 0 and will cause a run-time error. You should not assign strings to arrays with the equal sign. In this case, you should use a global array of strings for your team names. Use a switch() statement when using cs_get_user_team() instead of inefficiently using two if statements. |
| All times are GMT -4. The time now is 13:44. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.