Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new Handle:g_hClientShitPanels[MAXPLAYERS + 1];
- public Action:Command_MenuTest(client, args)
- {
- if(!IsClientInGame(client))
- return;
- if(g_hClientShitPanels[client] != INVALID_HANDLE)
- delete g_hClientShitPanels[client];
- new Handle:panel = CreatePanel();
- SetPanelTitle(panel, "Stupid Panel Title");
- for (new i = 0; i <= 512; i++)
- {
- if(!IsValidEntity(entArray[i][ent_entityid]))
- continue;
- if(entArray[i][ent_ownerid] > 0 && entArray[i][ent_ownerid] <= MaxClients)
- {
- if(IsClientInGame(entArray[i][ent_ownerid]))
- {
- char sBuffer[512];
- Format(sBuffer, sizeof(sBuffer), "%s %N CoolDown: %i", entArray[i][ent_name], entArray[i][ent_ownerid], entArray[i][ent_cooldowntime]);
- DrawPanelText(panel, sBuffer);
- }
- }
- }
- g_hClientShitPanels[client] = panel;
- SendPanelToClient(panel, client, ShitPanelHandler, MENU_TIME_FOREVER);
- }
- public int ShitPanelHandler(Handle:menu, MenuAction:action, client, choice)
- {
- if(action == MenuAction_Cancel)
- {
- g_hClientShitPanels[client] = INVALID_HANDLE;
- delete menu;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement