SA-MP Forums Archive
A tutorial for me please? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: A tutorial for me please? (/showthread.php?tid=602340)



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(playeridarg[], help)
{
    if(
help)
    {
        
SendClientMessage(playeridSTEALTH_ORANGE"______________________________________________");
        
SendClientMessage(playeridSTEALTH_GREEN"Export current map.");
        return 
1;
    }
    
MapOpenCheck();
    
inline Export(epidedialogideresponseelistitemstring:etext[])
    {
        
#pragma unused elistitem, edialogid, epid, etext
        
if(eresponse)
        {
            switch(
elistitem)
            {
                case 
0BroadcastCommand(playerid"/exportmap");
                case 
1BroadcastCommand(playerid"/exportallmap");
                case 
2BroadcastCommand(playerid"/avexport");
                case 
3BroadcastCommand(playerid"/avexportall");
            }
        }
    }
    
Dialog_ShowCallback(playeridusing inline ExportDIALOG_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(playeridarg[], help)
{
    if(
help)
    {
        
SendClientMessage(playeridSTEALTH_ORANGE"______________________________________________");
        
SendClientMessage(playeridSTEALTH_GREEN"Export current map.");
        return 
1;
    }
    
MapOpenCheck();
    
inline Export(epidedialogideresponseelistitemstring:etext[])
    {
        
#pragma unused elistitem, edialogid, epid, etext
        
if(eresponse)
        {
            switch(
elistitem)
            {
                case 
0BroadcastCommand(playerid"/exportmap");
                case 
1BroadcastCommand(playerid"/exportallmap");
                case 
2BroadcastCommand(playerid"/avexport");
                case 
3BroadcastCommand(playerid"/avexportall");
            }
        }
    }
    
Dialog_ShowCallback(playeridusing inline ExportDIALOG_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