Notes
Notes - notes.io |
#include < store >
#include < cstrike >
#include < sdktools >
#pragma tabsize 0
new Handle:menuhandle
bool aktif;
new count = 0;
ConVar g_EklentiTagi;
ConVar g_Kredi_Miktari;
public OnMapStart()
{
decl String:mapismi[128];
GetCurrentMap(mapismi, sizeof(mapismi));
if((StrContains(mapismi, "jb_", false) == 1) || (StrContains(mapismi, "jail_", false) == 1) || (StrContains(mapismi, "ba_jail", false) == 1))
{
return;
}
}
public OnPluginStart()
{
HookEvent("player_death", DeathEvent);
HookEvent("round_start", roundstart);
HookEvent("round_end", roundend);
g_EklentiTagi = CreateConVar("tagayarla", "SonJeton", "Bütün eklentilerin reklamlarını buradan değiştirebilirsiniz. ([ ] gibi işaretler koymayınız) || Swolly ||");
g_Kredi_Miktari = CreateConVar("sm_sonakalan_kredi", "0", "Sona kalan menüden kredi seçildiginde kaç kredi verilsin.");
AutoExecConfig(true, "sonakalan_kredi", "sourcemod");
}
public DeathEvent(Handle:event, const String:name[], bool:dontBroadcast)
{
new count, client;
for (new i = 1; i <= MaxClients; i++)
{
if (IsClientInGame(i))
{
if (GetClientTeam(i) == CS_TEAM_T)
{
if(IsPlayerAlive(i))
{
client = i;
count++;
}
}
}
}
if(count == 1)
{
if(aktif)
{
// EMPTY
}
else
if (count == 1)
{
if (GetClientTeam(client) == CS_TEAM_T)
{
new String:Eklenti_Tagi[32];
GetConVarString(g_EklentiTagi, Eklenti_Tagi, 64);
menuhandle = CreateMenu(sonakalanmenu);
SetMenuTitle(menuhandle, "[%s] Sona Kalan Mahkum Menüsü", Eklenti_Tagi);
AddMenuItem(menuhandle, "lr", "Lr At");
AddMenuItem(menuhandle, "isyan", "İsyan Yap");
new String:Kredi_Yazisi[231];
Format(Kredi_Yazisi, 231, "%d Kredi", GetConVarInt(g_Kredi_Miktari));
AddMenuItem(menuhandle, "kredi", Kredi_Yazisi);
SetMenuPagination(menuhandle, 7);
SetMenuExitButton(menuhandle, true);
DisplayMenu(menuhandle, client, 30);
aktif = true;
}
}
}
}
public sonakalanmenu(Handle:menuhandle, MenuAction:action, client, Position)
{
if(action == MenuAction_Select)
{
decl String:Item[20];
GetMenuItem(menuhandle, Position, Item, sizeof(Item));
new String:Eklenti_Tagi[32];
GetConVarString(g_EklentiTagi, Eklenti_Tagi, 64);
if (StrEqual(Item, "lr"))
{
if(aktif)
{
count = 0;
for (new i = 1; i <= MaxClients; i++)
if(IsClientInGame(i) && GetClientTeam(i) == CS_TEAM_T && IsPlayerAlive(i))
{
count++;
}
if (count == 1)
{
ClientCommand(client, "sm_lr");
PrintToChatAll(" x04[x02%sx04] x0c Sona Kalan Mahkum LR Atmayı Seçti.", Eklenti_Tagi);
PrintHintTextToAll("<font size='20' color='#8B0000'>[%s]</font><font size='20' color='#00FFFF'>Sona Kalan Mahkum LR Atmayı Seçti.", Eklenti_Tagi);
aktif = true;
for (new i = 1; i <= MaxClients; i++)
if(IsClientInGame(i) && GetClientTeam(i) == CS_TEAM_T && IsPlayerAlive(i))
{
new Handle:hHudText = CreateHudSynchronizer();
SetHudTextParams(-1.0, -0.60, 3.0, 153, 51, 51, 0, 2, 1.0, 0.1, 0.2);
ShowSyncHudText(i, hHudText, "Sona Kalan Mahkum LR Atmayı Seçti.");
CloseHandle(hHudText);
}
}
else
{
PrintToChat(client, " x04[x02%sx04] x0c Bu Menü Şuanda x05 Aktif x04 Değil.", Eklenti_Tagi);
}
}
else
{
PrintToChat(client, " x04[x02%sx04] x0c Bu Menü Şuanda x05 Aktif x04 Değil.", Eklenti_Tagi);
}
}
if (StrEqual(Item, "isyan"))
{
if(aktif)
{
count = 0;
for (new i = 1; i <= MaxClients; i++)
if(IsClientInGame(i) && GetClientTeam(i) == CS_TEAM_T && IsPlayerAlive(i))
{
count++;
}
if (count == 1)
{
GivePlayerItem(client, "weapon_ak47");
GivePlayerItem(client, "weapon_m4a1");
GivePlayerItem(client, "weapon_negev");
GivePlayerItem(client, "weapon_deagle");
GivePlayerItem(client, "weapon_hegrenade");
GivePlayerItem(client, "weapon_molotov");
PrintToChatAll(" x04[x02%sx04] x0c Sona Kalan Mahkum İsyan Yapmayı Seçti.", Eklenti_Tagi);
PrintHintTextToAll("<font size='20' color='#8B0000'>[%s]</font><font size='20' color='#00FFFF'>Sona Kalan Mahkum İsyan Yapmayı Seçti.", Eklenti_Tagi);
aktif = true;
for (new i = 1; i <= MaxClients; i++)
if(IsClientInGame(i) && GetClientTeam(i) == CS_TEAM_T && IsPlayerAlive(i))
{
new Handle:hHudText = CreateHudSynchronizer();
SetHudTextParams(-1.0, -0.60, 3.0, 153, 51, 51, 0, 2, 1.0, 0.1, 0.2);
ShowSyncHudText(i, hHudText, "Sona Kalan Mahkum İsyan Yapmayı Seçti.");
CloseHandle(hHudText);
}
}
else
{
PrintToChat(client, " x04[x02%sx04] x0c Bu Menü Şuanda x05 Aktif x04 Değil.", Eklenti_Tagi);
}
}
else
{
PrintToChat(client, " x04[x02%sx04] x0c Bu Menü Şuanda x05 Aktif x04 Değil.", Eklenti_Tagi);
}
}
if (StrEqual(Item, "kredi"))
{
if(aktif)
{
count = 0;
for (new i = 1; i <= MaxClients; i++)
if(IsClientInGame(i) && GetClientTeam(i) == CS_TEAM_T && IsPlayerAlive(i))
{
count++;
}
if (count == 1)
{
Store_SetClientCredits(client, Store_GetClientCredits(client) + GetConVarInt(g_Kredi_Miktari));
ForcePlayerSuicide(client);
PrintToChatAll(" x04[x02%sx04] x0c Sona Kalan Mahkum Kredi Seçti. Otomatik %d kredi verildi.", Eklenti_Tagi, GetConVarInt(g_Kredi_Miktari));
PrintHintTextToAll("<font size='20' color='#8B0000'>[%s]</font><font size='20' color='#00FFFF'>Sona Kalan Mahkum Kredi Seçti. Otomatik %d kredi verildi.", Eklenti_Tagi, GetConVarInt(g_Kredi_Miktari));
aktif = true;
for (new i = 1; i <= MaxClients; i++)
if(IsClientInGame(i) && GetClientTeam(i) == CS_TEAM_T && IsPlayerAlive(i))
{
new Handle:hHudText = CreateHudSynchronizer();
SetHudTextParams(-1.0, -0.60, 3.0, 153, 51, 51, 0, 2, 1.0, 0.1, 0.2);
ShowSyncHudText(i, hHudText, "Sona Kalan Mahkum Kredi Seçti. Otomatik %d kredi verildi.", GetConVarInt(g_Kredi_Miktari));
CloseHandle(hHudText);
}
}
else
{
PrintToChat(client, " x04[x02%sx04] x0c Bu Menü Şuanda x05 Aktif x04 Değil.", Eklenti_Tagi);
}
}
else
{
PrintToChat(client, " x04[x02%sx04] x0c Bu Menü Şuanda x05 Aktif x04 Değil.", Eklenti_Tagi);
}
}
} else if(action == MenuAction_End)
{
CloseHandle(menuhandle);
}
}
public roundstart(Handle:event, const String:name[], bool:dontBroadcast)
{
aktif = false;
}
public roundend(Handle:event, const String:name[], bool:dontBroadcast)
{
aktif = false;
CloseHandle(menuhandle);
}
|
Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 12 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team