Hey! What's up guys?
I've come back again
So today I run down on two questions.
P.s. I have the pracc server. Pracc is default 5on5 matches(team vs team). Im working on Server Managming with the plugin
Let's look at the screen..
1) You see [Kupio Pro League]{myNick} etc...
So Kupio Pro League is white, my nick is green.
Now look at the code, please
2) You see HintText of course.
It looks bad.
I've wanted to say that's code has written by github programmer a long time ago..
Code:
public Action Unready(client, args)
{
char UnreadyAttemptSteamID[32];
char UnreadyAttemptName[32];
GetClientName(client, UnreadyAttemptName, sizeof(UnreadyAttemptName));
if (CurrentRound == WARMUP)
{
if (IsClientValid(client) && PlayerReadyCheck(client))
{
GetClientAuthId(client, AuthId_Steam2, UnreadyAttemptSteamID, sizeof(UnreadyAttemptSteamID), false);
if (FindStringInArray(PlayersReadyList, UnreadyAttemptSteamID) != -1)
{
int ReqRdy = GetConVarInt(RequiredReadyPlayers);
int ArrayIndex = FindStringInArray(PlayersReadyList, UnreadyAttemptSteamID);
RemoveFromArray(PlayersReadyList, ArrayIndex);
ReadyPlayers--;
PrintToChatAll("\x05 [Kupio Pro League]\x06 %s \x05is now unready. %d/%d players ready.", UnreadyAttemptName, ReadyPlayers, ReqRdy);
PrintHintTextToAll("<font color='#87ff87'>%d/%d Players Ready</font><br><font color='#af5fff'>Type \x07!ready to ready up.</font>", ReadyPlayers, GetConVarInt(RequiredReadyPlayers));
return Plugin_Handled;
}
}
}
else if (CurrentRound != WARMUP)
{
return Plugin_Handled;
}
return Plugin_Handled;
}
I've also wanted:
1) Completely make a green message: "\x05 [Kupio Pro League]\x06 %s \x05is now unready...etc";
2) Create correct HintText for nice picture at a glance.
I cant do this because I've started programming sourcemod plugins 3 days ago and I dont know a lot of sourcemod programming.
Can somebody help me with my diligences?