25.11.2011, 10:45
(
Последний раз редактировалось Boooth; 25.11.2011 в 11:37.
)
I having trouble with converting my /help into dialogs, if possible could somebody assist me in converting this.
Here's the code:
I want to have the dialogs like so:
Need Help?
General
Chats
Faction
Jobs
House
Business
Phone
Other
"Select" "Close"
Please help.
Here's the code:
Код:
if(strcmp(cmd, "/help", true) == 0) { if(IsPlayerConnected(playerid)) { SendClientMessage(playerid, COLOR_GRAD4,".: ACCOUNT :. /rules /login /stats /changepass /levelup /upgrade"); SendClientMessage(playerid, COLOR_GRAD4,".: GENERAL :. /pay /charity /time /buy /unrentcar /unrentbike /switchkey /id /drink /clothes /ChatAnim"); SendClientMessage(playerid, COLOR_GRAD4,".: GENERAL :. /resetupgrades(50k) /buygun /lock /licenses /showlicenses(/sl) /report /askq /animlist /stopanim /fuel"); SendClientMessage(playerid, COLOR_GRAD4,".: GENERAL :. (/re)port /cancel /accept /eject /fill /admins /helpers (/f)actionlist /quitfaction /quitcfaction"); SendClientMessage(playerid, COLOR_GRAD4,".: GENERAL :. (/wi)ndows /pcc /coin /trunk /knock /knockout /give /gateopen /sid /smoke /mydrugs /usedrugs"); SendClientMessage(playerid, COLOR_GRAD4,".: GENERAL :. /refresh /stuck /vehicleradio /togradio /dropgun /pickgun /car"); SendClientMessage(playerid, COLOR_GRAD4,".: CHAT :. (/p)m (/cw)hisper (/o)oc (/s)hout /low (/b) (/f)action (/cf)action /me /do /togooc /tognews /togfam /togpm /togphone"); SendClientMessage(playerid, COLOR_GRAD4,".: BANK :. /balance /withdraw /deposit /wiretransfer /takecredit"); if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1) { SendClientMessage(playerid, COLOR_YELLOW2, ".: LSPD :. (/r)adio (/d)epartments (/m)egaphone (/su)spect /mdc /arrest /duty /wanted (/cu)ff (/ta)zer /silencer"); SendClientMessage(playerid, COLOR_YELLOW2, ".: LSPD :. /frisk /take (/gov)ernment /detain /copuntie /opendoor /closedoor /tgate /training /drag"); SendClientMessage(playerid, COLOR_YELLOW2, ".: LSPD :. /createroadblock(/crb) /removeroadblock(/rrb) /showbadge /weplicense /warnplayer /warndriver"); } if(PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 2) { SendClientMessage(playerid, COLOR_YELLOW2, ".: FBI :. (/r)adio (/d)epartments (/m)egaphone (/su)spect /mdc /arrest /duty /wanted (/cu)ff (/ta)zer /agent /showid /silencer"); SendClientMessage(playerid, COLOR_YELLOW2, ".: FBI :. /frisk /take /ticket (/gov)ernment /ram /detain /copuntie /undercover /swat /fbi /tgate /training /straining /drag"); } if(PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pMember] == 3) { SendClientMessage(playerid, COLOR_YELLOW2, ".: FBI :. (/r)adio (/d)epartments (/m)egaphone (/su)spect /mdc /arrest /duty /wanted (/cu)ff (/ta)zer /agent /showid /silencer"); SendClientMessage(playerid, COLOR_YELLOW2, ".: FBI :. /frisk /take /ticket (/gov)ernment /ram /detain /copuntie /undercover /swat /fbi /tgate /training /straining /drag"); } if(PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9) { SendClientMessage(playerid,COLOR_YELLOW2,".: JOB :. /live /news [text]"); } //members from down here were down there if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8) { SendClientMessage(playerid,COLOR_YELLOW2,".: HITMAN :. /portable"); } if(PlayerInfo[playerid][pMember] == 10||PlayerInfo[playerid][pLeader] == 10) { SendClientMessage(playerid,COLOR_YELLOW2,".: TAXI :. /duty"); } if(PlayerInfo[playerid][pMember] == 17||PlayerInfo[playerid][pLeader] == 17) { SendClientMessage(playerid,COLOR_YELLOW2,".: GARAGE :. /duty /improve"); } if(PlayerInfo[playerid][pMember] == 11||PlayerInfo[playerid][pLeader] == 11||PlayerInfo[playerid][pMember] == 12||PlayerInfo[playerid][pLeader] == 12){ SendClientMessage(playerid,COLOR_YELLOW2,".: LESSON :. /startlesson /stoplesson /givelicense"); } if (gTeam[playerid] == 1 || PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4) { SendClientMessage(playerid, COLOR_YELLOW2, ".: SAMD :: (/r)adio (/d)epartments /heal /duty /tracelastcall(/tlc)"); } //members from up here were down there if(PlayerInfo[playerid][pJob] == 1) { SendClientMessage(playerid,COLOR_YELLOW2,".: JOB :. /trace /attachmole /tracker /killtracker /killmole"); } else if(PlayerInfo[playerid][pJob] == 5) { SendClientMessage(playerid,COLOR_YELLOW2,".: JOB :. /delivercar"); } else if(PlayerInfo[playerid][pJob] == 7) { SendClientMessage(playerid,COLOR_YELLOW2,".: JOB :. /repair /refill /tow /colorlist /paintcar"); } else if(PlayerInfo[playerid][pJob] == 26) { SendClientMessage(playerid,COLOR_YELLOW2,".: JOB :. /startgarbage /stopgarbage"); } else if(PlayerInfo[playerid][pJob] == 27) { SendClientMessage(playerid,COLOR_GRAD5,"*** JOB *** /startdozer /stopdozer"); } else if(PlayerInfo[playerid][pJob] == 11) { SendClientMessage(playerid,COLOR_YELLOW2,".: JOB :. /heal"); } else if(PlayerInfo[playerid][pJob] == 12) { SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :. /fight /boxstats"); } else if(PlayerInfo[playerid][pJob] == 14) { SendClientMessage(playerid,COLOR_YELLOW2,".: JOB :. /fare"); } else if(PlayerInfo[playerid][pJob] == 16) { SendClientMessage(playerid,COLOR_YELLOW2,".: JOB :. /buyprods /sellprods /load"); } else if(PlayerInfo[playerid][pJob] == 17) { SendClientMessage(playerid,COLOR_YELLOW2,".: JOB :. /duty /sellpizza"); } else if(PlayerInfo[playerid][pJob] == 18) { SendClientMessage(playerid,COLOR_YELLOW2,".: JOB :. /startharvest /stopharvest"); } else if(PlayerInfo[playerid][pJob] == 19) { SendClientMessage(playerid,COLOR_YELLOW2,".: JOB :. /startdrugharvest /stopdrugharvest"); } else if(PlayerInfo[playerid][pJob] == 20) { SendClientMessage(playerid,COLOR_YELLOW2,".: JOB :. /mydrugs(/md) /buydrug(/bd) /drugsprices(/dp) /selldrug(/sd)"); } else if(PlayerInfo[playerid][pJob] == 21) { SendClientMessage(playerid,COLOR_YELLOW2,".: JOB :. /startsweep /stopsweep"); } else if(PlayerInfo[playerid][pJob] == 22) { SendClientMessage(playerid,COLOR_YELLOW2,".: JOB :. /materials"); } else if(PlayerInfo[playerid][pJob] == 23) { SendClientMessage(playerid,COLOR_YELLOW2,".: JOB :. /creategun /buymats"); } else if(PlayerInfo[playerid][pJob] == 25) { SendClientMessage(playerid,COLOR_YELLOW2,".: JOB :. /cutdown"); } //members were here if (PlayerInfo[playerid][pAdmin] >= 1) { SendClientMessage(playerid, COLOR_YELLOW, ".: ADMIN :. (/a)dmin (/ah)elp"); } if (PlayerInfo[playerid][pHelper] >= 1) { SendClientMessage(playerid, COLOR_YELLOW, ".: HELPER :. /helperduty(/hduty) /hname /hsetskin /hspawnplayer /respawnplayer /hslap /he(lperchat)"); } if (PlayerInfo[playerid][pFMember] != 0) { SendClientMessage(playerid, 0x25affeAA, ".: Crime Faction :. /cfaction(/cf) /spraycar /familylist /fr(/familyradio)"); } if (PlayerInfo[playerid][pFLeader] != 0) { SendClientMessage(playerid, COLOR_GRAD4, ".: Crime Faction :. /family /cfaction(/cf) /spraycar /cinvite /cuninvite /familylist /fr(/familyradio)"); } SendClientMessage(playerid, COLOR_GRAD6,".: OTHER :. /cellphonehelp /househelp /note help /renthelp /businesshelp /leaderhelp"); SendClientMessage(playerid, COLOR_GRAD6,".: OTHER :./crimeleaderhelp /fishhelp /cookhelp /irchelp"); } return 1; }
Need Help?
General
Chats
Faction
Jobs
House
Business
Phone
Other
"Select" "Close"
Please help.