PDA

View Full Version : [REQ] Help please


shehzad1234
01-02-2017, 07:40
Hi all Happy New year :)

hey please any one make this like when players select youtube then youtbe page on in motd but my code is not helping me please any one help me?? please??

// Generated with v3x's AMXX Menu Generator

#include <amxmodx>

public plugin_init()
{
register_plugin("My Menu", "1.0", "Me");
register_clcmd("say /youtube", "ShowMenu", _, "");
}

public ShowMenu(id)
{
new menu = menu_create("MyMenu", "mh_MyMenu");

menu_additem(menu, "Youtube", "", 0); // case 0

menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);

menu_display(id, menu, 0);

return PLUGIN_HANDLED;
}

public mh_MyMenu(id, menu, item)
{
if(item == MENU_EXIT)
{
menu_cancel(id);
return PLUGIN_HANDLED;
}

new command[6], name[64], access, callback;

menu_item_getinfo(menu, item, access, command, sizeof command - 1, name, sizeof name - 1, callback);

switch(item)
{
case 0: show_motd(id, "https://www.youtube.com", "TITLE")
}

menu_destroy(menu);

return PLUGIN_HANDLED;
}

Screen shot :-

http://i64.tinypic.com/2rw1anq.jpg

OciXCrom
01-02-2017, 08:27
https => http

edon1337
01-02-2017, 09:06
https => http

Billion dollar companies don't use HTTP.

Relaxing
01-02-2017, 09:18
You are creating a menu don't have any options. Whaaaat

OciXCrom
01-02-2017, 09:28
Billion dollar companies don't use HTTP.

Zero dollar CS 1.6 can't open a https link in a MOTD. It opens with http.

@Relaxing - it's called a test code, so relax.

Relaxing
01-02-2017, 09:30
untested
#include <amxmodx>

public plugin_init()
{
register_clcmd("say /youtube","youtubemotd")
}

public youtubemotd(id)
{
show_motd(id,"http://youtube.com/","Youtube")
}

shehzad1234
01-02-2017, 09:32
Thanks for helping me all :D

@OciXCrom

thanks bro https -> http its working :)