Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <sourcemod>
- #include <sdktools>
- #include <sdkhooks>
- #include <cstrike>
- int round;
- public void OnPluginStart()
- {
- HookEvent("round_start", roundstart);
- RegConsoleCmd("sm_sprawdz", sprawdz);
- }
- public void OnMapStart()
- {
- round = 0;
- }
- public Action sprawdz (int client , int args)
- {
- PrintToChat(client, "Runda %d", round);
- }
- public Action roundstart(Handle event, const char[] name, bool dontBroadcast)
- {
- if (GameRules_GetProp("m_bWarmupPeriod") == 0)
- {
- round ++;
- }
- }
- public Action CS_OnBuyCommand(int client, const char[] sWeapon)
- {
- PrintToChatAll("%i %s",round,sWeapon);
- // if(round == 1 || round == 16)
- // {
- if (StrEqual(sWeapon, "assaultsuit"))
- {
- PrintToChat(client, "Zablokowano Hełm");
- return Plugin_Handled;
- }
- // }
- return Plugin_Continue;
- }
Advertisement
Add Comment
Please, Sign In to add comment