PDA

View Full Version : Help Command :)


Brys
23/12/2014, 06:53 AM
How to make this :
if(IsPlayerAdmin(playerid))
For any player use ?

Glossy42O
23/12/2014, 06:55 AM
so anyplayer can use it? remove it then..

Brys
23/12/2014, 07:00 AM
Errors... heheh Help me:


//--------------------------------------------------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;
}


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

AdHaM612
23/12/2014, 07:05 AM
//--------------------------------------------------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;
}

Glossy42O
23/12/2014, 07:18 AM
Errors... heheh Help me:


//--------------------------------------------------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?

JeaSon
23/12/2014, 07:21 AM
mistake was that he was missing bracket

this shold fix problem

//--------------------------------------------------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;
}