A tutorial for me please? -
radiobizza - 05.03.2016
Can someone explain me about BroadcastCommand ?
Re: A tutorial for me please? -
MicroKyrr - 06.03.2016
What is that? A include? Function? I have never see that before.
Re: A tutorial for me please? -
radiobizza - 06.03.2016
A function
Re: A tutorial for me please? -
TheBoZ - 06.03.2016
I never heard of it, where did you see broadcastCommand anyways?
There isnt such function, here's all the scripting functions:
wiki.sa-mp.com/wiki/Category:Scripting_Functions
Re: A tutorial for me please? -
MicroKyrr - 06.03.2016
.. Example of the code?
Re: A tutorial for me please? -
radiobizza - 06.03.2016
Quote:
Originally Posted by MicroKyrr
.. Example of the code?
|
PHP код:
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;
}
Re: A tutorial for me please? -
MicroKyrr - 06.03.2016
Quote:
Originally Posted by radiobizza
PHP код:
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;
}
|
Maybe this will send you the usage of cmd ? Forcecmd?
Try to Ctrl+F and find BroadCastCommand again , I'm pretty sure it's stock ?
Re: A tutorial for me please? -
radiobizza - 07.03.2016
There are neither include or like a stock
Re: A tutorial for me please? -
radiobizza - 08.03.2016
Bump !
Re: A tutorial for me please? -
MicroKyrr - 09.03.2016
Find the include or stock in your code. Can you test that code and tell us how it works . Etc . It will send you the command or blabla