Raised This Month: $51 Target: $400
 12% 

I pay for this script improving


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
vegeta1241
AlliedModders Donor
Join Date: Apr 2017
Location: Switzerland
Old 11-24-2018 , 15:51   I pay for this script improving
Reply With Quote #1

I have a hide and seek server, and I have a plugin when people press E button to the model (logo of my team), advertisement will appear on the chat.

I want to improve this plugin, and every round I want when a player press E button :

If Hider (terrorist)
- hider who press E button, get awp
- Or
- hider who press E button, get More speed
- hider who press E button, get 300 hp
- set health to Random seeker (ct) to 100 hp
- set health to Random seeker (ct) to 1 hp
- Vampire for hider who press E button
- Set drug for random seeker
- Hider who press E button get ont hit knife (-2000hp)
- hider who press E button, get Sawed-Off

If seeker press E button
- give deagle to SEEKER who press buttono
- set balise to a random Hider
- SEEKER who press button get godmode
- set 1hp to random HIDER
- SEEKER who press button get 3 decoy (if possible because my serv turn with ammo_grenade_Default) if not possible : 1 deco my 1 Molotov 1 he
- SEEKER who press button get vampire
- 1 HIT KNIFE KILL to seeker who press button
- set drug to random hider
- seeker who press E button, get Sawed-Off

1 action for 1 round for every player(if 10 players just 1 player can press E button)

For every action : msg in chat and hsay if possible example : [IDEAS BONUS] x player is been baliser by the y player.

If hider press button : msg in red
If seeker press button : msg in blue

And emit sound to all for every bonus round

I can pay for this script 10 or 15 euro

If you are interested add me on steam https://steamcommunity.com/id/Vegeta1241/

Last edited by vegeta1241; 11-25-2018 at 11:18.
vegeta1241 is offline
vegeta1241
AlliedModders Donor
Join Date: Apr 2017
Location: Switzerland
Old 11-24-2018 , 18:23   Re: I pay for this script improving
Reply With Quote #2

We have this script, when player press E button msg [IDEAS] xxxxxxxxxxx are been emit, but the actions are not working

PHP Code:
#pragma semicolon 1
 
#define DEBUG
 
#define PLUGIN_AUTHOR ""
#define PLUGIN_VERSION ""
 
#include <sourcemod>
#include <sdktools>
#include <smlib>
#include <cstrike>
//#include <sdkhooks>
 
EngineVersion g_Game;
char g_sEggConfig[PLATFORM_MAX_PATH];
int g_iPlayerPrevButtons[MAXPLAYERS 1];
bool OnVamp[MAXPLAYERS];
 
public 
Plugin myinfo 
{
    
name "",
    
author PLUGIN_AUTHOR,
    
description "",
    
version PLUGIN_VERSION,
    
url ""
};
 
public 
void OnPluginStart()
{
    
g_Game GetEngineVersion();
    if(
g_Game != Engine_CSGO)
    {
        
SetFailState("This plugin is for CSGO/CSS only.");  
    }
    
    
BuildPath(Path_SMg_sEggConfigsizeof(g_sEggConfig), "configs/eggs/eggs.cfg");
    
HookEvent("round_start"Event_RoundStart);
    
HookEvent("player_hurt"Event_Hurt);
}
 
public 
void OnMapStart()
{
 
    
AddFileToDownloadsTable("materials/models/custom_prop/IDEAS/banner/8TanLRyg.vmt");
    
AddFileToDownloadsTable("materials/models/custom_prop/IDEAS/banner/8TanLRyg.vtf");
    
    
AddFileToDownloadsTable("models/custom_prop/IDEAS/banner/banner.dx90.vtx"); 
    
AddFileToDownloadsTable("models/custom_prop/IDEAS/banner/banner.mdl"); 
 
 
}

public 
Action Event_HurtHandle event, const char[] namebool dontBroadcast)
{
    
int client GetClientOfUserId(event.GetInt("userid"));
    
int attacker GetClientOfUserId(event.GetInt("attacker"));
    if(
IsClientInGame(client) && IsClientInGame(attacker) && OnVamp[attacker])
    {
        
int dmg_health event.GetInt("dmg_health");
        
SetEntityHealth(attackerdmg_health+GetClientHealth(attacker));
    }
}

public 
Action Event_RoundStart(Handle event, const char[] namebool dontBroadcast)
{
    for(
int i 0<= MaxClientsi++) OnVamp[i] = false;
    
CreateTimer(0.3Remove_TakenEggs);
}
 
public 
Action Remove_TakenEggs(Handle tmrany client)
{
    
    
KeyValues kv CreateKeyValues("Eggs");
    
kv.ImportFromFile(g_sEggConfig);
 
    if (
kv.GotoFirstSubKey())
    {
        do
        {
            
char found[10];
            
kv.GetString("found"foundsizeof(found));
            
int ifound StringToInt(found);
            
            if(
ifound == 1)
            {
                
char nameinconfig[120];
                
kv.GetSectionName(nameinconfigsizeof(nameinconfig));
                    
                
int ent 0;
                while ((
ent FindEntityByClassname(ent"prop_dynamic")) != INVALID_ENT_REFERENCE) {
                    if(
IsValidEntity(ent) && IsValidEdict(ent)) {
                        
char entglobaname[50];
                        
Entity_GetGlobalName(ententglobanamesizeof(entglobaname));
                        
                        if (
StrEqual(entglobanamenameinconfig)) {
                            if(
IsValidEntity(ent)) {
                                
Entity_Kill(ent);
                            }
                        }
                        
                    }
                }
                    
            }
            
        } while (
kv.GotoNextKey());
        
        
delete kv;
    }
 
}
 
public 
Action OnPlayerRunCmd(int clientint &iButtonsint &iImpulsefloat fVelocity[3], float fAngles[3], int &iWeapon
{
 
    if(
IsClientInGame(client) && IsPlayerAlive(client)
    {
        if(!(
g_iPlayerPrevButtons[client] & IN_USE) && iButtons IN_USE)
        {
            
int egg GetTargetBlock(client);
            
            if(
IsValidEntity(egg))
            {
                
float EggOrg[3];
                
float PlayerOrg[3];
                
                
GetEntPropVector(eggProp_Send"m_vecOrigin"EggOrg);
                
GetClientAbsOrigin(clientPlayerOrg);
                
                
float distance GetVectorDistance(EggOrgPlayerOrg);
                
                if(
distance 80.0)
                {
                    
char eggname[120];
                    
Entity_GetGlobalName(eggeggnamesizeof(eggname));
                    
                    
char username[128];
                    
char steamid64[40];
                    
char founder[168];
                    
GetClientName(clientusernamesizeof(username));
                    
GetClientAuthId(clientAuthId_SteamID64steamid64sizeof(steamid64));
                    
                    
                    
Format(foundersizeof(founder), "Username: %s | SteamID64: %s"usernamesteamid64);
                    
//EggIsFound(eggname, founder);
                    //RemoveEggFromMap(egg);
                    
PrintToChatAll("\x3 \x4 [IDEAS] \x1 --------------------------------------");
                    
PrintToChatAll("\x3 \x4 [IDEAS] \x1 Website: https://www.ideas-team.fr/");
                    
PrintToChatAll("\x3 \x4 [IDEAS] \x1 Teamspeak : ts12.verygames.net:50886");
                    
PrintToChatAll("\x3 \x4 [IDEAS] \x1 Our servers : ");
                    
PrintToChatAll("\x3 \x4 [IDEAS] \x1 Hide and Seek : 51.254.26.200:27015 ");
                    
PrintToChatAll("\x3 \x4 [IDEAS] \x1 AIM - AWP : 54.37.240.37:27015");
                    
PrintToChatAll("\x3 \x4 [IDEAS] \x1 ONLY AWP : 54.37.240.37:27015");
                    
PrintToChatAll("\x3 \x4 [IDEAS] \x1 --------------------------------------");
                    
                    if(
GetEntProp(entityProp_Send"m_iMinHealthDmg") == 5)
                    {
                        
SetEntProp(eggProp_Send"m_iMinHealthDmg"1);
                        if(
GetClientTeam(client) == 2)
                        {
                            
GivePlayerItem(client"weapon_awp");
                            
SetEntityHealth(client200); 
                            
SetEntityHealth(GetRandomEnemy(client), 100);
                            
SetEntityHealth(GetRandomEnemy(client), 1);
                            
OnVamp[client] = true;
                        }

                        if(
GetClientTeam(client) == 3)
                        {
                            
GivePlayerItem(client"weapon_deagle");
                            
SetEntityHealth(GetRandomEnemy(client), 1);
                            
OnVamp[client] = true;
                            for(
int i =0<2i++) GivePlayerItem(client"decoy_projectile");
                        }
                }
                    
            }
        }
        
g_iPlayerPrevButtons[client] = iButtons;
    }
}

int GetRandomEnemy(int client)
{
    
int clients[32], counts;
    for(
int i 1<= MaxClientsi++)
    {
        if(
IsClientInGame(i) && IsPlayerAlive(i) && GetClientTeam(i) != GetClientTeam(client))
        {
            
clients[count] = i;
            
count++;
        }
    }
    return 
count client[GetRandomInt(0count-1)] : -1;
}

public 
void EggIsFound(char eggname[120], char founder[168])
{
    
    
KeyValues kv CreateKeyValues("Eggs");
    
kv.ImportFromFile(g_sEggConfig);
 
    if (
kv.GotoFirstSubKey())
    {
        
char nameinconfig[120];
        do
        {
            
kv.GetSectionName(nameinconfigsizeof(nameinconfig));
            
            if(
StrEqual(nameinconfigeggname))
            {
                
kv.SetString("found""1");
                
kv.SetString("founder"founder);
                
kv.Rewind();
                
kv.ExportToFile(g_sEggConfig);
            }
            
        } while (
kv.GotoNextKey());
        
        
delete kv;
        
    }
 
}
 
public 
void RemoveEggFromMap(int entity)
{
 
    if(
IsValidEntity(entity))
        
AcceptEntityInput(entity"Kill");
 
}
 
 
public 
bool IsAdmin(int client)
{
    if(
Client_HasAdminFlags(clientADMFLAG_GENERIC) || Client_HasAdminFlags(clientADMFLAG_ROOT) || Client_HasAdminFlags(clientADMFLAG_BAN))
        return 
true;
    else return 
false;
}
 
 
int GetTargetBlock(int client)
{
    
int entity GetClientAimTarget(clientfalse);
    if (
IsValidEntity(entity))
    {
        
char classname[32];
        
GetEdictClassname(entityclassname32);
        
        if (
StrContains(classname"prop_dynamic") != -1)
            return 
entity;
    }
    return -
1;

__________________
IDEAS-GAMING.COM SERVERS ON CSGO :

- HIDE AND SEEK - SUPERHEROES
- BUNNY HOP
- KZ / CLIMB

---------------------------------------------------------------------
My steam link
Donate !
vegeta1241 is offline
Mrs cheng
Member
Join Date: Mar 2017
Old 11-24-2018 , 23:42   Re: I pay for this script improving
Reply With Quote #3

This is not difficult, if you have other computer language foundations, you should try to learn and improve it yourself.
Mrs cheng is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 11-25-2018 , 04:08   Re: BONUS ROUND when player press E button in models
Reply With Quote #4

Dude, no multiple topics of same posts.
Ask moderator to move your original or something...
And if you REQUEST something instead scripting yourself ->
Quote:
Plugin/Gameplay Ideas and Requests
Post third party ideas and requests here. Use the bug tracker to request SourceMod features.
__________________
Do not Private Message @me
Bacardi is offline
vegeta1241
AlliedModders Donor
Join Date: Apr 2017
Location: Switzerland
Old 11-25-2018 , 05:52   Re: BONUS ROUND when player press E button in models
Reply With Quote #5

Ah okey sorry dude
__________________
IDEAS-GAMING.COM SERVERS ON CSGO :

- HIDE AND SEEK - SUPERHEROES
- BUNNY HOP
- KZ / CLIMB

---------------------------------------------------------------------
My steam link
Donate !
vegeta1241 is offline
vegeta1241
AlliedModders Donor
Join Date: Apr 2017
Location: Switzerland
Old 11-25-2018 , 05:53   Re: I pay for this script improving
Reply With Quote #6

I learn but I can’t learn all in 1 month _-
__________________
IDEAS-GAMING.COM SERVERS ON CSGO :

- HIDE AND SEEK - SUPERHEROES
- BUNNY HOP
- KZ / CLIMB

---------------------------------------------------------------------
My steam link
Donate !
vegeta1241 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:56.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode