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);
}
}
}
}