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

Can someone make me a quick plugin?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Jagger
New Member
Join Date: Apr 2010
Old 04-28-2010 , 23:52   Can someone make me a quick plugin?
Reply With Quote #1

I have no idea what I'm doing, I can't figure out how to get key values and stuff. I don't want to learn this language, I just want you to make a plugin like this for me.

The goal of this plugin is to put all non-survivorbots into the infected team.

Here is what I have but am stuck on:
Code:
//NoSurvivors Plugin
#include <sourcemod>

public OnPluginStart()
{
    CreateTimer(1.0, NoSurvivors);
}
 
public Action:NoSurvivors(Handle:timer)
{
    for (new i=1; i<=MaxClients; i++)
        {
            if (GetClientTeam(i) == 2) {
                //put into team 3
                   if (!KeyValue(i, "classname") == "SurvivorBot") { //this line would be the problem, i have no idea what the function for finding keyvalue is
                             ChangeClientTeam(i, 3);
                   }

            }
        }
}
Jagger is offline
Marcus101RR
Veteran Member
Join Date: Aug 2009
Location: Tampa, FL
Old 04-29-2010 , 14:43   Re: Can someone make me a quick plugin?
Reply With Quote #2

Quote:
Originally Posted by Jagger View Post
I have no idea what I'm doing, I can't figure out how to get key values and stuff. I don't want to learn this language, I just want you to make a plugin like this for me.

The goal of this plugin is to put all non-survivorbots into the infected team.

Here is what I have but am stuck on:
Code:
//NoSurvivors Plugin
#include <sourcemod>

public OnPluginStart()
{
    CreateTimer(1.0, NoSurvivors);
}
 
public Action:NoSurvivors(Handle:timer)
{
    for (new i=1; i<=MaxClients; i++)
        {
            if (GetClientTeam(i) == 2) {
                //put into team 3
                   if (!KeyValue(i, "classname") == "SurvivorBot") { //this line would be the problem, i have no idea what the function for finding keyvalue is
                             ChangeClientTeam(i, 3);
                   }

            }
        }
}
I assume you mean put Humans on infected? and you fight against bots? Just do sb_all_bots_team 1 and switch to infected. There is already a plugin called infected bots to help you with this.
Marcus101RR is offline
Send a message via AIM to Marcus101RR Send a message via Skype™ to Marcus101RR
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 19:50.


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