Znajdź zawartość
Wyświetlanie wyników dla tagów '[sm]' .
-
Flaga "t", dodatkowa gotówka przy spawnie. #include <sourcemod> #include <sdktools> #include <cstrike> #include <sdkhooks> public Plugin myinfo = { name = "x", author = "x", description = "x", version = "x", url = "x" } public void OnPluginStart() { HookEvent("player_spawn", 1shot2kill.pl_Spawn); } public void OnMapStart() { } public Action 1shot2kill.pl_Spawn(Handle event, const char[] name, bool dontBroadcast) { int client = GetClientOfUserId(GetEventInt(event, "userid")); if (IsValidPlayer(client) && IsPlayerVip(client)) { SetEntPropFloat(client, Prop_Send, "m_flLaggedMovementValue", 2.0); } } stock bool IsValidPlayer(int client) { if(client >= 1 && client <= MaxClients && IsClientConnected(client) && !IsFakeClient(client) && IsClientInGame(client) ) return true; return false; } stock bool IsPlayerVip(int client) { if (CheckCommandAccess(client, "1shot2kill_vipek", ADMFLAG_RESERVATION, false)) return true; return false; }
-
#include <sourcemod> public Plugin myinfo = { name = "x", author = "Marshall", description = "x", version = "x", url = "www.1shot2kill.pl" }; public void OnPluginStart() { RegConsoleCmd("sm_ruletka", Ruletka); } public Action Ruletka(int client, int args) { char sbuffer[32]; GetCmdArg(1, sbuffer, sizeof(sbuffer)); int kasa_user = GetEntData(client, FindSendPropInfo("CCSPlayer", "m_iAccount")); int dolaryDodane = StringToInt(sbuffer); if(kasa_user < dolaryDodane) { PrintToChat(client, "★\x07 ★ 1Shot2kill.pl ★ \x05Masz tylko %i dolarów!", kasa_user); return Plugin_Handled; } if(args < 0) { PrintToChat(client, "★\x07 ★ 1Shot2kill.pl ★ \x05Wprowadziłeś niepoprwaną ilość gotówki. Try again."); return Plugin_Handled; } if(args == 0) { Handle menu = CreateMenu(RuletkaH); SetMenuTitle(menu, "Opis korzystania:\n- !ruletka <liczba_dolarów>\n- jeśli trafisz dosjtajesz 3 krotność gotówki bądź 2 krotność, zależy od szczęścia\n-Jeśli przegrałeś = tracisz"); return Plugin_Handled; } int random = GetRandomInt(1, 7); int wygrana = dolaryDodane * 3; if(random == 1) { PrintToChat(client, "★ 1Shot2kill.pl ★ \x05Brawo, udało się! Wygrałeś \x04%i$\x05!", wygrana); SetEntData(client, FindSendPropInfo("CCSPlayer", "m_iAccount"), kasa_user+wygrana-dolaryDodane); if(kasa_user > 16000) { SetEntData(client, FindSendPropInfo("CCSPlayer", "m_iAccount"), 16000); } } else { PrintToChat(client, "★ 1Shot2kill.pl ★ \x05Niestety, nie udało się wygrać! Tracisz \x04%i$\x05!", dolaryDodane); SetEntData(client, FindSendPropInfo("CCSPlayer", "m_iAccount"), kasa_user-dolaryDodane); } return Plugin_Handled; } public int RuletkaH(Handle handle, MenuAction action, int client, int pos) { if(action == MenuAction_Select) { char item[32]; GetMenuItem(handle, pos, item, sizeof(item)); if(StrEqual(item, "1")) { int random = GetRandomInt(1, 7); if(random == 1) PrintToChat(client, "★\x07 ★ 1Shot2kill.pl ★ \x05Wygrałbyś te losowanie, spróbuj teraz wpłacając dolary!"); else PrintToChat(client, "★ 1Shot2kill.pl ★ \x05Masz szczęście, że to losowanie testowe! Przegrałbyś wpłacone dolary!"); } } else if(action == MenuAction_End) CloseHandle(handle); }
-
#include <sourcemod> #include <sdktools> #include <cstrike> #include <sdkhooks> public Plugin myinfo = { name = "x", author = "x", description = "x", version = "x", url = "x" } public void OnClientPutInServer(int client) { if (IsValidPlayer(client)) { SDKHook(client, SDKHook_OnTakeDamage, OnTakeDamage); } } public Action OnTakeDamage(int client, int &attacker, int &inflictor, float &damage, int &damagetype) { if (IsPlayerVip(client)) { if(damagetype & DMG_FALL) { return Plugin_Handled; } } return Plugin_Changed; } stock bool IsValidPlayer(int client) { if(client >= 1 && client <= MaxClients && IsClientConnected(client) && !IsFakeClient(client) && IsClientInGame(client) ) return true; return false; } stock bool IsPlayerVip(int client) { if (CheckCommandAccess(client, "1shot2kill_vipek", ADMFLAG_RESERVATION, false)) return true; return false; }
-
#include <sourcemod> #include <sdktools> #include <cstrike> #include <sdkhooks> public Plugin myinfo = { name = "x", author = "x", description = "x", version = "x", url = "x" } public void OnPluginStart() { HookEvent("player_spawn", 1shot2kill.pl_Spawn); } public void OnMapStart() { } public Action 1shot2kill.pl_Spawn(Handle event, const char[] name, bool dontBroadcast) { int client = GetClientOfUserId(GetEventInt(event, "userid")); if (IsValidPlayer(client) && IsPlayerVip(client)) { GivePlayerItem(client, "weapon_deagle"); } } stock bool IsValidPlayer(int client) { if(client >= 1 && client <= MaxClients && IsClientConnected(client) && !IsFakeClient(client) && IsClientInGame(client) ) return true; return false; } stock bool IsPlayerVip(int client) { if (CheckCommandAccess(client, "1shot2kill_vipek", ADMFLAG_RESERVATION, false)) return true; return false; }
-
Kevlar przy spawnie, flaga "t". #include <sourcemod> #include <sdktools> #include <cstrike> #include <sdkhooks> public Plugin myinfo = { name = "x", author = "x", description = "x", version = "x", url = "x" } public void OnPluginStart() { HookEvent("player_spawn", 1shot2kill.pl_Spawn); } public void OnMapStart() { } public Action 1shot2kill.pl_Spawn(Handle event, const char[] name, bool dontBroadcast) { int client = GetClientOfUserId(GetEventInt(event, "userid")); if (IsValidPlayer(client) && IsPlayerVip(client)) { if ((GetTeamScore(CS_TEAM_T) + GetTeamScore(CS_TEAM_CT)) > 0) SetEntProp(client ,Prop_Send,"m_ArmorValue",100,1); } } stock bool IsValidPlayer(int client) { if(client >= 1 && client <= MaxClients && IsClientConnected(client) && !IsFakeClient(client) && IsClientInGame(client) ) return true; return false; } stock bool IsPlayerVip(int client) { if (CheckCommandAccess(client, "1shot2kill_vipek", ADMFLAG_RESERVATION, false)) return true; return false; }
-
Flaga "t", dodatkowa gotówka przy spawnie. #include <sourcemod> #include <sdktools> #include <cstrike> #include <sdkhooks> public Plugin myinfo = { name = "x", author = "x", description = "x", version = "x", url = "x" } public void OnPluginStart() { HookEvent("player_spawn", 1shot2kill.pl_Spawn); } public void OnMapStart() { } public Action 1shot2kill.pl_Spawn(Handle event, const char[] name, bool dontBroadcast) { int client = GetClientOfUserId(GetEventInt(event, "userid")); if (IsValidPlayer(client) && IsPlayerVip(client)) { SetEntProp(client, Prop_Send, "m_iAccount", GetEntProp(client, Prop_Send, "m_iAccount") + 100); } } stock bool IsValidPlayer(int client) { if(client >= 1 && client <= MaxClients && IsClientConnected(client) && !IsFakeClient(client) && IsClientInGame(client) ) return true; return false; } stock bool IsPlayerVip(int client) { if (CheckCommandAccess(client, "1shot2kill_vipek", ADMFLAG_RESERVATION, false)) return true; return false; }
-
Ostatnio przeglądający 0 użytkowników
- Brak zarejestrowanych użytkowników przeglądających tę stronę.