Marshallew Opublikowano 26 Stycznia 2019 Udostępnij Opublikowano 26 Stycznia 2019 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; } Odnośnik do komentarza https://1shot2kill.pl/topic/35892-sm-funkcja-armor/ Udostępnij na innych stronach Więcej opcji udostępniania...
Rekomendowane odpowiedzi