05.03.2016, 20:40
Can someone explain me about BroadcastCommand ?
YCMD:export(playerid, arg[], help)
{
if(help)
{
SendClientMessage(playerid, STEALTH_ORANGE, "______________________________________________");
SendClientMessage(playerid, STEALTH_GREEN, "Export current map.");
return 1;
}
MapOpenCheck();
inline Export(epid, edialogid, eresponse, elistitem, string:etext[])
{
#pragma unused elistitem, edialogid, epid, etext
if(eresponse)
{
switch(elistitem)
{
case 0: BroadcastCommand(playerid, "/exportmap");
case 1: BroadcastCommand(playerid, "/exportallmap");
case 2: BroadcastCommand(playerid, "/avexport");
case 3: BroadcastCommand(playerid, "/avexportall");
}
}
}
Dialog_ShowCallback(playerid, using inline Export, DIALOG_STYLE_LIST, "Texture Studio (Export Mode)", "Export Map\nExport All Map To Filerscript\nExport Current Car\nExport All Cars", "Ok", "Cancel");
return 1;
}
PHP код:
|