Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <sourcemod>
- #include <sdktools>
- #include <cstrike>
- #include <geoip.inc>
- #include <string.inc>
- #include <stocklib>
- #include "sdkhooks"
- new bool:CoolTime = false;
- public OnPluginStart()
- {
- RegConsoleCmd("jointeam", Command_JoinTeam1);
- HookEvent("player_team", OnPlayerJoinTeam, EventHookMode_Pre);
- }
- public Action:OnPlayerJoinTeam(Handle:event, const String:name[], bool:broadcast)
- {
- return Plugin_Handled;
- }
- public Action:Command_JoinTeam1(Client, Arguments)
- {
- decl String:Arg[8];
- GetCmdArg(1, Arg, sizeof(Arg));
- if(StrEqual(Arg, "1"))
- {
- PrintToChatAll("%N 님이 관전으로 조인하셨습니다.", Client);
- }
- else if(StrEqual(Arg, "2"))
- {
- PrintToChatAll("%N 님이 테러리스트로 조인하셨습니다.", Client);
- }
- else if(StrEqual(Arg, "3"))
- {
- PrintToChatAll("%N 님이 대 테러리스트로 조인하셨습니다.", Client);
- }
- else if(StrEqual(Arg, "0"))
- {
- new GetTeam = GetClientTeam(Client);
- if(GetTeam == 2)
- {
- PrintToChatAll("%N 님이 테러리스트로 조인하셨습니다.", Client);
- }
- else if(GetTeam == 3)
- {
- PrintToChatAll("%N 님이 대 테러리스트로 조인하셨습니다.", Client);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement