Dear visitor, welcome to sourceserver.info. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.
Erinnert mich an ein Plugin, das ich für einen geschrieben habe und dieses Erfüllt genau die gleichen Sachen :D
Source code |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 |
#include <sourcemod> #include <sdktools> #include <cstrike> #include <colors> new Handle:Timers[MAXPLAYERS+1]; new g_BeamSprite; new g_HaloSprite; new redColor[4]= {255, 75, 75, 255}; new blueColor[4]= {75, 75, 255, 255}; new bool:g_allo[MAXPLAYERS+1]; public Plugin:myinfo = { name = "Beacons", author = "Jackmaster", description = "astzduikvhjmng", version = "1.0", url = "http://www.hd-gamer.de" } public OnPluginStart() { RegConsoleCmd("sm_beacon", abc); } public OnMapStart() { g_BeamSprite = PrecacheModel("materials/sprites/laser.vmt"); g_HaloSprite = PrecacheModel("materials/sprites/halo01.vmt"); } public Action:abc(client, args) { if (client == 0) { return; } if (IsClientInGame(client) && IsPlayerAlive(client)) { if (!g_allo[client]) { g_allo[client] = true; CPrintToChat(client, "{green}[Auto-Bhop]{lightgreen} Beacon wurde abgestellt"); } else { g_allo[client] = false; CPrintToChat(client, "{green}[Beacons]{lightgreen} Beacon wurde angemacht"); } } } public OnClientPutInServer(client) { Timers[client] = CreateTimer(0.5, Timer_Beacon, client, TIMER_REPEAT); } public OnClientDisconnect(client) { CloseHandle(Timers[client]); Timers[client] = INVALID_HANDLE; } public Action:Timer_Beacon(Handle:timer, any:client) { if (IsPlayerAlive(client) && g_allo[client]) { SetupBeacon(client); } } SetupBeacon(client) { new Float:vec[3]; if ((GetClientTeam(client) == CS_TEAM_T)) { GetClientAbsOrigin(client, vec); vec[2] += 1; TE_SetupBeamRingPoint(vec, 50.0, 60.0, g_BeamSprite, g_HaloSprite, 0, 15, 0.1, 10.0, 0.0, redColor, 10, 0); TE_SendToAll(); } if ((GetClientTeam(client) == CS_TEAM_CT)) { GetClientAbsOrigin(client, vec); vec[2] += 1; TE_SetupBeamRingPoint(vec, 50.0, 60.0, g_BeamSprite, g_HaloSprite, 0, 15, 0.1, 10.0, 0.0, blueColor, 10, 0); TE_SendToAll(); } } |
Super Moderator
Location: Österreich
Occupation: IT Systemadministrator
wcf.user.option.userOption53: Ja
und dann decompilieren und den Quellcode bei Pastebin veröffentlichen damit alle was davon haben
Super Moderator
Location: Österreich
Occupation: IT Systemadministrator
wcf.user.option.userOption53: Ja