PHP Code:
new Colorz;
public OnPluginStart()
{
CreateTimer(0.1, Timer_Update, _, TIMER_REPEAT);
Colorz = 0;
}
public Action:Timer_Update(Handle:timer)
{
for (new x = 1; x <= MaxClients; x++)
{
if (IsClientInGame(x) && IsPlayerAlive(x))
{
if(Colorz== 0)
SendMsg_HudMsg(x, 1, -1.0, -0.85, 255, 0, 0, 255, 0, 255, 0, 255, 0, 0.05, 0.05, 0.1, 0.1, "Mitch Was Here");
if(Colorz == 1)
SendMsg_HudMsg(x, 1, -1.0, -0.85, 0, 255, 0, 255, 0, 0, 255, 255, 0, 0.05, 0.05, 0.1, 0.1, "Mitch Was Here");
if(Colorz == 2)
SendMsg_HudMsg(x, 1, -1.0, -0.85, 0, 0, 255, 255, 255, 0, 0, 255, 0, 0.05, 0.05, 0.1, 0.1, "Mitch Was Here");
Colorz += 1;
if(Colorz > 2)
Colorz = 0;
}
}
}
// "HudMsg" message
stock SendMsg_HudMsg(client, channel,
Float:x, Float:y,
aRclr, aGclr, aBclr, aTclr,
bRclr, bGclr, bBclr, bTclr,
effect,
Float:fadein, Float:fadeout,
Float:holdtime, Float:fxtime,
const String:szMsg[])
{
new Handle:hBf;
if (!client)
hBf = StartMessageAll("HudMsg");
else hBf = StartMessageOne("HudMsg", client);
if (hBf != INVALID_HANDLE)
{
BfWriteByte(hBf, channel); //channel
BfWriteFloat(hBf, x); // x ( -1 = center )
BfWriteFloat(hBf, y); // y ( -1 = center )
// second color
BfWriteByte(hBf, aRclr); //r1
BfWriteByte(hBf, aGclr); //g1
BfWriteByte(hBf, aBclr); //b1
BfWriteByte(hBf, aTclr); //a1 // transparent?
// init color
BfWriteByte(hBf, bRclr); //r2
BfWriteByte(hBf, bGclr); //g2
BfWriteByte(hBf, bBclr); //b2
BfWriteByte(hBf, bTclr); //a2
BfWriteByte(hBf, effect); //effect (0 is fade in/fade out; 1 is flickery credits; 2 is write out)
BfWriteFloat(hBf, fadein); //fadeinTime (message fade in time - per character in effect 2)
BfWriteFloat(hBf, fadeout); //fadeoutTime
BfWriteFloat(hBf, holdtime); //holdtime
BfWriteFloat(hBf, fxtime); //fxtime (effect type(2) used)
BfWriteString(hBf, szMsg); //Message
EndMessage();
}
}
Do you have a topic where they said they refused to add it in?