PHP Code:
/*
Created Nice Presents by sector for www.chatbox.do.am
Web Help - www.chatbox.do.am
All ingenious is simple - Nice. Made in Russia.
*/
#include <amxmodx>
#include <cstrike>
new nTimer[33]
new nBanks[33]
new nTimes[33]
new nTime = 3
new nBank = 2000
new nLimit = 15000
new nSweet[7][] =
{
"уĞĞĞчĞĞ",
"ĞĞĞĞĞчĞĞĞĞ",
"ĞрĞсĞĞчĞĞ",
"тĞĞ ĞĞрĞĞть",
"ĞучшĞĞ",
"сĞĞыĞ, сĞĞыĞ",
"ĞрутĞĞ"
}
public plugin_init()
{
register_plugin("Nice Presents", "1.0", "sector")
}
public client_putinserver(i)
{
set_task(60.0, "nice_presents_timer", i, _, _, "b")
nTimer[i] = 0
nBanks[i] = 0
nTimes[i] = 0
}
public client_disconnect(i)
{
if(task_exists(i))
{
remove_task(i)
}
}
public nice_presents_timer(i)
{
nTimer[i]++
if(nTimer[i] == nTime)
{
if(is_user_connected(i))
{
nBanks[i] += nBank
nTimes[i] += nTime
new nName[33], nMoney = cs_get_user_money(i)
get_user_name(i, nName, 32)
if(nMoney <= nLimit)
{
cs_set_user_money(i, (nMoney + nBanks[i]))
nChatPrint(i, "^1[^4Nice Presents^1] ^3%s^1, ты ĞĞ сĞрĞĞрĞ уĞĞ ^4%d^1 ĞĞĞ.", nName, nTimes[i])
nChatPrint(i, "^1[^4Nice Presents^1] Ğ ĞĞ этĞ ĞĞĞучĞĞшь ĞĞĞĞрĞĞ Ğ ĞĞĞĞ ^4%d^1$, %s!", nBanks[i], nSweet[random_num(0, 7)])
}
else
if(nMoney > nLimit)
{
nChatPrint(i, "^1[^4Nice Presents^1] ^3%s^1, ĞĞĞĞрĞĞ ĞĞ ĞуĞĞт! ĞĞĞĞĞ: ^4%d^1$ :(", nName, nMoney)
}
nTimer[i] = 0
}
}
}
stock nChatPrint(const id, const input[], any:...)
{
new nCount = 1, nNum[32]
static nMsgs[191]
vformat(nMsgs, 190, input, 3)
replace_all(nMsgs, 190, "!g", "^4")
replace_all(nMsgs, 190, "!n", "^1")
replace_all(nMsgs, 190, "!t", "^3")
if(id) nNum[0] = id; else get_players(nNum, nCount, "ch")
{
for(new i = 0; i < nCount; i++)
{
if(is_user_connected(nNum[i]))
{
message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, nNum[i])
write_byte(nNum[i])
write_string(nMsgs)
message_end()
}
}
}
}