SA-MP Forums Archive
Help Command :) - 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: Help Command :) (/showthread.php?tid=552201)



Help Command :) - Brys - 23.12.2014

How to make this :
pawn Код:
if(IsPlayerAdmin(playerid))
For any player use ?


Re: Help Command :) - Glossy42O - 23.12.2014

so anyplayer can use it? remove it then..


Re: Help Command :) - Brys - 23.12.2014

Errors... heheh Help me:

pawn Код:
//--------------------------------------------------TEXT COMMAND--------------------------------------------

    if (strcmp("/text", cmdtext, true, 10) == 0)
       
            ShowPlayerDialog(playerid,3333,DIALOG_STYLE_MSGBOX,"{0470FC}Dinamic 3D Text Creator","{88FC04}Do you want to put a\n{04F4FC}3D Text{88FC04} in this location?","Yes","No");

        }
        return 1;
    }
   
//-----------------------------------------------------CREDITS----------------------------------------------
   
    if (strcmp("/tcredits", cmdtext, true, 10) == 0)
    {
    ShowPlayerDialog(playerid,6144,DIALOG_STYLE_MSGBOX,"{FE8C00}ShOoBy's 3D Text System Credits","{0400FE}Made by {09FE00}ShOoBy{0400FE}\nSaving help from {EF5C06}CrystyaN {0400FE}and {EF5C06}stuntman","Ok","");
    return 1;
    }
    return 0;
}


//-------------------------------------------------------------------------------------------------------------



Re: Help Command :) - AdHaM612 - 23.12.2014

pawn Код:
//--------------------------------------------------TEXT COMMAND--------------------------------------------

    if (strcmp("/text", cmdtext, true, 10) == 0)
    {
        ShowPlayerDialog(playerid,3333,DIALOG_STYLE_MSGBOX,"{0470FC}Dinamic 3D Text Creator","{88FC04}Do you want to put a\n{04F4FC}3D Text{88FC04} in this location?","Yes","No");
        return 1;
    }

//-----------------------------------------------------CREDITS----------------------------------------------

    if (strcmp("/tcredits", cmdtext, true, 10) == 0)
    {
        ShowPlayerDialog(playerid,6144,DIALOG_STYLE_MSGBOX,"{FE8C00}ShOoBy's 3D Text System Credits","{0400FE}Made by {09FE00}ShOoBy{0400FE}\nSaving help from {EF5C06}CrystyaN {0400FE}and {EF5C06}stuntman","Ok","");
        return 1;
    }
    return 0;
}



Re: Help Command :) - Glossy42O - 23.12.2014

Quote:
Originally Posted by Brys
Посмотреть сообщение
Errors... heheh Help me:

pawn Код:
//--------------------------------------------------TEXT COMMAND--------------------------------------------

    if (strcmp("/text", cmdtext, true, 10) == 0)
       
            ShowPlayerDialog(playerid,3333,DIALOG_STYLE_MSGBOX,"{0470FC}Dinamic 3D Text Creator","{88FC04}Do you want to put a\n{04F4FC}3D Text{88FC04} in this location?","Yes","No");

        }
        return 1;
    }
   
//-----------------------------------------------------CREDITS----------------------------------------------
   
    if (strcmp("/tcredits", cmdtext, true, 10) == 0)
    {
    ShowPlayerDialog(playerid,6144,DIALOG_STYLE_MSGBOX,"{FE8C00}ShOoBy's 3D Text System Credits","{0400FE}Made by {09FE00}ShOoBy{0400FE}\nSaving help from {EF5C06}CrystyaN {0400FE}and {EF5C06}stuntman","Ok","");
    return 1;
    }
    return 0;
}


//-------------------------------------------------------------------------------------------------------------
what's the error?


Re: Help Command :) - JeaSon - 23.12.2014

mistake was that he was missing bracket

this shold fix problem
pawn Код:
//--------------------------------------------------TEXT COMMAND--------------------------------------------

    if (strcmp("/text", cmdtext, true, 10) == 0)
    {
        ShowPlayerDialog(playerid,3333,DIALOG_STYLE_MSGBOX,"{0470FC}Dinamic 3D Text Creator","{88FC04}Do you want to put a\n{04F4FC}3D Text{88FC04} in this location?","Yes","No");
        return 1;
    }