Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public PlayerJoined_Event(Handle:event, const String:name[], bool:dontBroadcast)
- {
- ServerCommand("sb_add biker;sb_add manager;sb_add namvet;");
- for (new i = 1; i <= MaxClients; i++)
- {
- if (IsClientConnected(i) && IsClientInGame(i))
- {
- if (IsFakeClient(i) && GetClientTeam(i) == 4)
- {
- ChangeClientTeam(i, 2);
- }
- else Debug_PrintText("Client %N is not a L4D1 Survivor Bot! This Client's Team is Team %i)", i, GetClientTeam(i));
- }
- }
- }
- #if DEBUG
- stock Debug_PrintText(const String:format[], any:...)
- {
- decl String:buffer[256];
- VFormat(buffer, sizeof(buffer), format, 2);
- LogMessage(buffer);
- new AdminId:adminId;
- for (new client = 1; client <= MaxClients; client++)
- {
- if (!IsClientInGame(client) || IsFakeClient(client))
- {
- continue;
- }
- adminId = GetUserAdmin(client);
- if (adminId == INVALID_ADMIN_ID || !GetAdminFlag(adminId, Admin_Root))
- {
- continue;
- }
- PrintToChat(client, DEBUG_PRINT_FORMAT, DEBUG_TAG, buffer);
- }
- }
- #endif
Advertisement
Add Comment
Please, Sign In to add comment