Nume plugin: Restricție Arme
Descriere: Restricționează anumite arme de pe server.
Autor: </xSaG>
Versiune: 1.0
Download: https://www81.zippyshare.com/v/c2Y8a7tQ/file.html
Restricție Arme
Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com
- Rainq
- Membru, skill +2
- Posts: 681
- Joined: 21 Jul 2015, 19:50
- Detinator Steam: Da
- CS Status: Retras
- Detinator server CS: zm.extreamcs.com
- SteamID: mrainq
- Reputatie: Fost super moderator
Fost detinator ZM.eXtreamCS.COM
Fost Membru Club eXtreamCS (trei luni) - Fond eXtream: 0
- Location: Bucharest
- Discord: manuraiders
- Has thanked: 29 times
- Been thanked: 51 times
- Contact:
poti sa faci sa restrictioneze unele arme dupa x runde ?
- xSaG
- Membru, skill +1
- Posts: 225
- Joined: 11 Aug 2017, 00:21
- Detinator Steam: Nu
- CS Status: Citesc forumul eXtreamCS.com...!
- Fond eXtream: 0
- Has thanked: 1 time
- Been thanked: 5 times
- Contact:
Înlocuieste :
Code: Select all
for(w = 0; w < size; w++)
{
Weapons.GetString(w, weapons_restricted, sizeof(weapons_restricted));
if(StrContains(weapon, weapons_restricted, false) != -1)
{
PrintToChat(client, "Această armă este restricționată!");
return Plugin_Handled;
}
}
Code: Select all
if(GetRoundCount() == ce runda vrei tu)
{
for(w = 0; w < size; w++)
{
Weapons.GetString(w, weapons_restricted, sizeof(weapons_restricted));
if(StrContains(weapon, weapons_restricted, false) != -1)
{
PrintToChat(client, "Această armă este restricționată!");
return Plugin_Handled;
}
}
}
Code: Select all
stock int GetRoundCount()
{
return GameRules_GetProp("m_totalRoundsPlayed");
}
www.sourcemod.ro - Tot ce ai nevoie pentru serverul tău