Beginner
Location: Donauwörth
Occupation: Fachinformatiker für SystemIntegration
wcf.user.option.userOption53: Ja
Beginner
Location: Donauwörth
Occupation: Fachinformatiker für SystemIntegration
wcf.user.option.userOption53: Ja
Source code |
|
1 2 3 4 5 6 7 8 9 |
#include <sourcemod> public bool:OnClientConnect(client, String:rejectmsg[], maxlen) { CreateDialog(client,"Test", DialogType_Msg); return true; } |
PHP Source code |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
if(StrContains(sType, "T") != -1)
{
decl String:sColor[16];
new iColor = -1, iPos = BreakString(sText, sColor, sizeof(sColor));
for(new i = 0; i < sizeof(g_sTColors); i++)
{
if(StrEqual(sColor, g_sTColors[i]))
iColor = i;
}
if(iColor == -1)
{
iPos = 0;
iColor = 0;
}
new Handle:hKv = CreateKeyValues("Stuff", "title", sText[iPos]);
KvSetColor(hKv, "color", g_iTColors[iColor][0], g_iTColors[iColor][1], g_iTColors[iColor][2], 255);
KvSetNum(hKv, "level", 1);
KvSetNum(hKv, "time", 10);
for(new i = 1; i <= MaxClients; i++)
{
if(IsClientInGame(i) && !IsFakeClient(i) &&
((!bAdmins && !(bFlags && HasFlag(i, fFlagList))) ||
bAdmins && (GetUserFlagBits(i) & (ADMFLAG_GENERIC|ADMFLAG_ROOT))))
CreateDialog(i, hKv, DialogType_Msg);
}
CloseHandle(hKv);
}
|
This post has been edited 1 times, last edit by "Servus" (Mar 29th 2013, 6:10pm)