if(strcmp(cmd, "/commands", true) == 0 || strcmp(cmd, "/cmds", true) == 0)
{
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid, COLOR_YELLOW2,"______________________________________________________________________________________________");
SendClientMessage(playerid, COLOR_YELLOW2,"~ ACCOUNT ~ /rules /stats /removereminder /setreminder /reminder");
SendClientMessage(playerid, COLOR_YELLOW2,"~ GENERAL ~ /dropdrugs /dropgun /tellmylocation /call /tie /blindfold /searchwallet /healme /attempt /(no)resist");
if(PlayerInfo[playerid][pJob] == 1) {
SendClientMessage(playerid,COLOR_LIGHTBLUE,"~ JOB ~ /find"); }
else if(PlayerInfo[playerid][pJob] == 2) {
SendClientMessage(playerid,COLOR_LIGHTBLUE,"~ JOB ~ /free"); }
else if(PlayerInfo[playerid][pJob] == 3) {
SendClientMessage(playerid,COLOR_LIGHTBLUE,"~ JOB ~ /sex"); }
else if(PlayerInfo[playerid][pJob] == 4) {
SendClientMessage(playerid,COLOR_LIGHTBLUE,"~ JOB ~ /buypot /buycrack /findpot /findcrack /givepot /givecrack"); }
else if(PlayerInfo[playerid][pMember] == 9) {
SendClientMessage(playerid,COLOR_LIGHTBLUE,"~ JOB ~ /live /news"); }
else if(PlayerInfo[playerid][pJob] == 6) {
SendClientMessage(playerid,COLOR_LIGHTBLUE,"~ JOB ~ /cookuniform /waiteruniform /showmenu"); }
else if(PlayerInfo[playerid][pJob] == 7) {
SendClientMessage(playerid,COLOR_LIGHTBLUE,"~ JOB ~ /paintcar /colorcar /repair /duty /tow /untow"); }
else if(PlayerInfo[playerid][pJob] == 8) {
SendClientMessage(playerid,COLOR_LIGHTBLUE,"~ JOB ~ /guard"); }
else if(PlayerInfo[playerid][pJob] == 9) {
SendClientMessage(playerid,COLOR_LIGHTBLUE,"~ JOB ~ /findguns /sellgun /sellmats"); }
else if(PlayerInfo[playerid][pJob] == 10) {
SendClientMessage(playerid,COLOR_LIGHTBLUE,"~ JOB ~ /sellcar"); }
else if(PlayerInfo[playerid][pJob] == 12) {
SendClientMessage(playerid,COLOR_LIGHTBLUE,"~ JOB ~ /fight /boxstats"); }
else if(PlayerInfo[playerid][pJob] == 14) {
SendClientMessage(playerid,COLOR_LIGHTBLUE,"~ JOB ~ /startroute"); }
else if(PlayerInfo[playerid][pJob] == 17) {
SendClientMessage(playerid,COLOR_LIGHTBLUE,"~ JOB ~ /sellicecream"); }
else if(PlayerInfo[playerid][pJob] == 18) {
SendClientMessage(playerid,COLOR_LIGHTBLUE,"~ JOB ~ /duty /heal"); }
else if(PlayerInfo[playerid][pJob] == 19) {
SendClientMessage(playerid,COLOR_LIGHTBLUE,"~ JOB ~ /fare"); }
else if(PlayerInfo[playerid][pJob] == 20) {
SendClientMessage(playerid,COLOR_LIGHTBLUE,"~ JOB ~ /startpizza /getpizza /givepizza"); }
if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "~ LSPD ~ /lspd(help)");
}
if (PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "~ FBI ~ /fbi(help)");
}
if (PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10)
{
SendClientMessage(playerid, COLOR_YELLOW, "~ GL ~ /r(adio) /f(amily) /opengate /members /gate /lab /lift /lift2 /getarmed");
}
SendClientMessage(playerid, COLOR_YELLOW2,"~ OTHER ~ /jobhelp /bank(help) /cellphonehelp /househelp /renthelp /businesshelp /leaderhelp /language(help)");
}
return 1;
}
|
Originally Posted by Torran
Yes it is possible
Rather than SendClientMessage use ShowPlayerDialog |
|
Originally Posted by Torran
|
|
Originally Posted by GhoulSlayeR
He sent you to the right place, if you don't understand that then you need to brush up on your basic coding skills.
![]() |
|
Originally Posted by Torran
Yes it is possible
Rather than SendClientMessage use ShowPlayerDialog |
if(strcmp(cmd, "/help", true) == 0 || strcmp(cmd, "/cmds", true) == 0 || strcmp(cmd, "/commands", true) == 0)
{
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_MSGBOX, "Help :", "anything u want , write it here", "Ok", "Cancel");
return 1;
}
// Define (On Top Of Script)
#define DSTATS 2000
// Copy & Replace
if(strcmp(cmd, "/commands", true) == 0 || strcmp(cmd, "/cmds", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new dstring[2048];
format(dstring, sizeof(dstring), "/rules, /stats, other commands here");
ShowPlayerDialog(playerid,DSTATS,DIALOG_STYLE_MSGBOX,"Stats",dstring,"Ok","Exit");
}
return 1;
}