Junior Member
|
05-06-2010
, 00:09
I don't know this problem !! Help me Plz!!...
|
#1
|
Quote:
#include <sourcemod>
#include <sdktools>
public OnPluginStart()
{
}
public OnGameFrame()
{
for(new Client = 0; Client >= MaxClients; Client++)
{
if(AliveCheck(Client))
{
new Player = GetClientAimTarget(Client, true);
if(GetClientButtons(Client) & IN_USE)
{
Command_Information(Client, Player);
}
}
}
}
public Command_Information(Client, Player)
{
new Handle:info = CreateMenu(Menu_Information);
new String:SteamID[32], String:CIP[32], String:CName[32];
GetClientName(Player, CName, 32);
GetClientAuthString(Player, SteamID, 32);
GetClientIP(Player, CIP, 32);
new String:FCname[256], String:FCIP[256], String:FID[256];
Format(FCname, 256, "Legend Bhop [이름] : %s", CName);
Format(FCIP, 256, "Legend Bhop [아이피] : %s", CIP);
Format(FID, 256, "Legend Bhop [고유번호] : %s", SteamID);
SetMenuTitle(info, "Client Information");
AddMenuItem(info, "이름", FCname);
AddMenuItem(info, "아이피", FCIP);
AddMenuItem(info, "고유번호", FID);
SetMenuExitButton(info, true);
DisplayMenu(info, Client, MENU_TIME_FOREVER);
}
public Menu_Information(Handle:menu, MenuAction:action, Client, select)
{
if(action == MenuAction_Select)
{
if(select == 0)
{
PrintToChat(Client, "\x04 Created By AKB, HIS");
}else if(select == 1)
{
PrintToChat(Client, "\x04 Created By AKB, HIS");
}else if(select == 2)
{
PrintToChat(Client, "\x04 Created By AKB, HIS");
}else if(select == 3)
{
PrintToChat(Client, "\x04 Created By AKB, HIS");
}else if(action == MenuAction_Cancel)
{
if(select == MenuCancel_Exit)
{
PrintToChat(Client, "\x04 정보보기를 종료.");
}
}else if(action == MenuAction_End)
{
CloseHandle(menu);
}
}
}
public bool:AliveCheck(Client)
{
if(Client > 0 && Client <= MaxClients)
{
if(IsClientConnected(Client) == true)
{
if(IsClientInGame(Client) == true)
{
if(IsPlayerAlive(Client) == true)
{
return true;
}
else
{
return false;
}
}
else
{
return false;
}
}
else
{
return false;
}
}
else
{
return false;
}
}
|
-------------------------------------------------------
Why not open menu?,,,,
Help me Plz
|
|