Witam,
czy mógłby ktoś skompilować mi ten plugin do .smx ? Bo w kompilatorze nie mogę ,bo zapewne nie ma jakichś bibliotek.
#include <sourcemod> #include <sdktools> #include <cstrike> #include <colors> public Plugin:myinfo = { name = "VIP", author = "SzYma", description = "", version = "1.0.2", url = "http://cswarszawa.com.pl/" }; public OnPluginStart() { HookEvent("player_spawn", Event_OnPlayerSpawn); } public Event_OnPlayerSpawn(Handle:event, const String:name[], bool:dontBroadcast) { new client = GetClientOfUserId(GetEventInt(event, "userid")); new team = GetClientTeam(client); new money = GetEntProp(client, Prop_Send, "m_iAccount"); if (client > 0 && IsPlayerAlive(client)) { if (IsPlayerGenericAdmin(client)) { PrintToChat(client, "\x01[\x04CsWarszawa\x01] Otrzymałeś kevlar, hełm, +5hp, +200$, zestaw do rozbrajania, spadochron oraz zestaw granatów, bo jestes VIP'em."); SetEntityHealth(client, 105); //hp SetEntProp(client, Prop_Send, "m_ArmorValue", 100, 4); //armor SetEntProp(client, Prop_Send, "m_bHasHelmet", 1); //helm SetEntProp(client, Prop_Send, "m_iAccount", money + 200); //200$ plus GivePlayerItem(client, "weapon_smokegrenade"); //smoke GivePlayerItem(client, "weapon_flashbang"); //flash GivePlayerItem(client, "weapon_hegrenade"); //grenade GivePlayerItem(client, "weapon_flashbang"); //flash if(team == CS_TEAM_CT) { GivePlayerItem(client, "item_defuser"); //kombinerki } } } } /* @param client id return bool */ bool:IsPlayerGenericAdmin(client) { return CheckCommandAccess(client, "generic_admin", ADMFLAG_RESERVATION, false); }
A 2 pytanie to:
W jakim pliku można edytować listę map, które pokazują się w vote na końcu mapy ?
Użytkownik HaX GaminG edytował ten post 01.02.2015 15:28