JailBreak Chronicles | JailBreak Günlükleri | nefret007 | SMA
Jailbreak İçin Kodladığım Bir Plugin...
- ScreenShot
Sma İçeriği...
PHP- Kodu:
#include <amxmodx>
#include <cstrike>
#include <colorchat>
new gun_sayisi,
maxoyuncu,
mapadi[32]
public plugin_init()
{
register_plugin("Jail Chronicles", "1.0", "nefret007")
register_logevent("event_new_round",2,"0=World triggered","1=Round_Start")
register_event("TextMsg", "RestartRound", "a", "2&#Game_C", "2&#Game_w")
maxoyuncu = get_maxplayers()
get_mapname(mapadi, 31)
}
public event_new_round()
{
gun_sayisi+= 1;
new cts[32], ts[32], ctsnum, tsnum
for (new id=1; id <= maxoyuncu; id++)
{
if (!is_user_connected(id) || !is_user_alive(id))
{
continue
}
if (cs_get_user_team(id) == CS_TEAM_T)
{
ts[tsnum++] = id
}
else if (cs_get_user_team(id) == CS_TEAM_CT)
{
cts[ctsnum++] = id
}
}
ColorChat(0,NORMAL,"^3[%s]^1 hapishanesi - ^4%d.Gun^1 | ^3Mahkumlar ^1: ^4%d ^1- ^3Gardiyanlar ^1: ^4%d", mapadi,gun_sayisi,tsnum,ctsnum);
return PLUGIN_CONTINUE;
}
public RestartRound()
{
gun_sayisi = 0
}