forked from lazhoroni/Plugins-for-CSGO-Servers
-
Notifications
You must be signed in to change notification settings - Fork 1
/
clanTagBonusPara_lolita.sp
93 lines (85 loc) · 3.14 KB
/
clanTagBonusPara_lolita.sp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
#include <sourcemod>
#include <colors>
#include <cstrike>
#include <sdktools>
#pragma semicolon 1
public Plugin:myinfo =
{
name = "Clan Tag Kullanana Bonus Para Ekleme",
author = "ImPossibLe`",
description = "+18 Lolita Gaming",
version = "1.0"
}
public OnPluginStart()
{
int ips[4];
char serverip[32];
int ip = GetConVarInt(FindConVar("hostip"));
ips[0] = (ip >> 24) & 0x000000FF;
ips[1] = (ip >> 16) & 0x000000FF;
ips[2] = (ip >> 8) & 0x000000FF;
ips[3] = ip & 0x000000FF;
Format(serverip, sizeof(serverip), "%d.%d.%d", ips[0], ips[1], ips[2]);
if(StrEqual(serverip, "185.188.144") == false || ips[3] < 2 || ips[3] > 129)
{
LogError("Bu plugin ImPossibLe` tarafindan lisanslandigi icin bu serverda calistirilmadi.");
PrintToChatAll(" \x04Bu plugin \x02ImPossibLe` \x04tarafından lisanslandığı için bu serverda çalıştırılmadı.");
SetFailState("Plugin Copyright by ImPossibLe`");
}
HookEvent("round_start", Event_RoundStart);
}
public Action:Event_RoundStart(Handle:event, const String:name[], bool:dontBroadcast)
{
if((GetTeamScore(2) + GetTeamScore(3)) >= 1)
{
new i;
for(i=1; i<MAXPLAYERS; i++)
{
if(IsClientInGame(i) && IsClientConnected(i) && IsPlayerAlive(i))
{
new String:clantagid[32];
{
if (IsClientConnected(i) && IsClientInGame(i) && !IsFakeClient(i))
{
GetClientInfo(i, "cl_clanid", clantagid, 9);
if(StrEqual(clantagid, "27159225") == true)
{
new iPara = 1000;
PrintToChat(i, " \x02[+18 Lolita Gaming] \x0C+18 Lolita ★ \x09Clan tagı kullandığınız için \x0E1.000$ \x09kazandınız.");
new g_iAccount = FindSendPropOffs("CCSPlayer", "m_iAccount");
new iSuankiPara = GetEntData(i, g_iAccount);
iPara = iPara + iSuankiPara;
if (iPara > 16000)
{
iPara = 16000;
}
SetEntData(i, g_iAccount, iPara);
}
else
{
PrintToChat(i, " \x02[+18 Lolita Gaming] \x0C+18 Lolita ★ \x09Clan tagı kullanırsanız, her el \x0Efazladan 1.000$ \x09kazanırsınız.");
PrintToChat(i, " \x04!grup \x06Yazarak grup sayfasını görebilirsiniz.");
PrintToChat(i, " \x06Gruba girdikten konsola \n\x02cl_clanid 27159225\x06 yazarak kullanabilirsiniz.");
CreateTimer(1.0, GrupReklam);
CreateTimer(3.0, GrupReklam2);
CreateTimer(5.0, GrupReklam3);
}
}
}
}
}
}
return Plugin_Continue;
}
public Action GrupReklam(Handle timer, int client)
{
PrintHintTextToAll("<font color='#FF0000'>+18 Lolita ★ </font><font color='#00FF00'>tagı alarak her el fazladan </font><font color='#FF00FF'>1.000$</font> <font color='#00FFFF'>kazanabilirsiniz</font>");
}
public Action GrupReklam2(Handle timer, int client)
{
PrintHintTextToAll("<font color='#FF0000'>+18 Lolita ★ </font><font color='#00FF00'>tagı alarak her el fazladan </font><font color='#FF00FF'>1.000$</font> <font color='#00FFFF'>kazanabilirsiniz</font>");
}
public Action GrupReklam3(Handle timer, int client)
{
PrintHintTextToAll("<font color='#FF0000'>+18 Lolita ★ </font><font color='#00FF00'>tagı alarak her el fazladan </font><font color='#FF00FF'>1.000$</font> <font color='#00FFFF'>kazanabilirsiniz</font>");
}