/help command in dialog
#1

Can someone made a command /help in dialog (in this dialog DIALOG_STYLE_MSGBOX)...
Here is the command:
Код:
	if(strcmp(cmd, "/help", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
		    SendClientMessage(playerid, COLOR_GRAD1,":: NALOG :: /pravila /zakoni /stats /changepass /levelup /upgrade");
			SendClientMessage(playerid, COLOR_GRAD1,":: GENERAL :: /pay  /otkaz /gps /gpsoff /charity /time /buy /unrentcar /unrentbike /switchkey /id /drink /odeca /opendoor(/od)");
			SendClientMessage(playerid, COLOR_GRAD2,":: GENERAL :: /resetupgrades(50k) /buygun /lock /skill /licenses /showlicenses(/sl) /report /askq /animlist /stopanim /fuel");
			SendClientMessage(playerid, COLOR_GRAD2,":: GENERAL :: (/re)port /govhelp /cancel /accept /eject /usedrugs /contract /fill /admini (/f)actionlist");
			SendClientMessage(playerid, COLOR_GRAD3,":: GENERAL :: (/wi)ndows /coin /trunk (/inv)entory /knock /knockout /give /gateopen /sid /smoke");
	  		SendClientMessage(playerid, COLOR_GRAD3,":: CHAT :: (/p)me (/cw)hisper (/o)oc (/s)hout /low (/b) (/f)action /me /do /togooc /tognews /togfam /togpm /togphone");
			SendClientMessage(playerid, COLOR_GRAD4,":: BANKA :: /balance /withdraw /deposit /wiretransfer /bwithdraw /bdeposit /bbank /bhelp");
			if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1)
			{
   				SendClientMessage(playerid, COLOR_YELLOW2, ":: POLICIJA :: (/r)adio (/d)epartments (/m)egaphone (/su)spect /mdc /arrest /duty /wanted (/cu)ff (/ta)zer /undercover /backup(/bk)");
				SendClientMessage(playerid, COLOR_YELLOW2, ":: POLICIJA :: /frisk /friskinv /take /ticket (/gov)ernment /deliver /ram /swat /authorizeswat /deauthorizeswat /drag /copuntie");
				SendClientMessage(playerid, COLOR_YELLOW2, ":: POLICIJA :: /backupclear(/bkc) /roadblock(/rb) /roadunblock(/rrb) /roadunblockall(/rrball) /showbadge /tracelastcall(/tlc) /weplicense /gateopen");
   			}
   			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 /friskinv");
				SendClientMessage(playerid, COLOR_YELLOW2, ":: FBI :: /frisk /take /ticket (/gov)ernment /deliver /ram /drag /copuntie /authorizetactical /deauthorizetactical /tactical /gateopen");
   			}
   			if(PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pMember] == 3)
			{
   				SendClientMessage(playerid, COLOR_YELLOW2, ":: VOJSKA :: (/r)adio (/d)epartments (/m)egaphone (/su)spect /mdc /arrest /wanted (/cu)ff (/ta)zer");
				SendClientMessage(playerid, COLOR_YELLOW2, ":: VOJSKA :: /frisk /friskinv /take /ticket (/gov)ernment /deliver /ram /drag /copuntie /gateopen");
   			}
            if(PlayerInfo[playerid][pJob] == 1) {
		    SendClientMessage(playerid,COLOR_YELLOW2,":: POSAO :: /find"); }
		    else if(PlayerInfo[playerid][pJob] == 2) {
		    SendClientMessage(playerid,COLOR_YELLOW2,":: POSAO :: /free"); }
		    else if(PlayerInfo[playerid][pJob] == 3) {
		    SendClientMessage(playerid,COLOR_YELLOW2,":: POSAO :: /sex"); }
		    else if(PlayerInfo[playerid][pJob] == 4) {
		    SendClientMessage(playerid,COLOR_YELLOW2,":: POSAO :: /selldrugs"); }
		    else if(PlayerInfo[playerid][pJob] == 5) {
		    SendClientMessage(playerid,COLOR_YELLOW2,":: POSAO :: /dropcar"); }
		    else if(PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9) {
		    SendClientMessage(playerid,COLOR_YELLOW2,":: POSAO :: /paper /papers /live /news [text]"); }
		    else if(PlayerInfo[playerid][pJob] == 7) {
		    SendClientMessage(playerid,COLOR_YELLOW2,":: POSAO :: /repair /refill /duty"); }
		    else if(PlayerInfo[playerid][pJob] == 8) {
		    SendClientMessage(playerid,COLOR_YELLOW2,":: POSAO :: /guard"); }
		    else if(PlayerInfo[playerid][pJob] == 9) {
		    SendClientMessage(playerid,COLOR_YELLOW2,":: POSAO :: /sellgun"); }
		    else if(PlayerInfo[playerid][pJob] == 10) {
		    SendClientMessage(playerid,COLOR_YELLOW2,":: POSAO :: /sellcar"); }
		    else if(PlayerInfo[playerid][pJob] == 11) {
		    SendClientMessage(playerid,COLOR_YELLOW2,":: POSAO :: /heal"); }
		    else if(PlayerInfo[playerid][pJob] == 12) {
		    SendClientMessage(playerid,COLOR_YELLOW2,":: POSAO :: /fight /boxstats"); }
		    else if(PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10|| PlayerInfo[playerid][pJob] == 14) {
		    SendClientMessage(playerid,COLOR_YELLOW2,":: POSAO :: /fare"); }
		    else if(PlayerInfo[playerid][pJob] == 15) {
		    SendClientMessage(playerid,COLOR_YELLOW2,":: POSAO :: /papers /bring /deliver"); }
		    else if(PlayerInfo[playerid][pJob] == 16) {
		    SendClientMessage(playerid,COLOR_YELLOW2,":: POSAO :: /buyprods /sellprods /load"); }
		    else if(PlayerInfo[playerid][pJob] == 17) {
		    SendClientMessage(playerid,COLOR_YELLOW2,":: POSAO :: /duty /sellpizza"); }
		    else if(PlayerInfo[playerid][pJob] == 18) {
		    SendClientMessage(playerid,COLOR_YELLOW2,":: POSAO :: /startharvest /stopharvest"); }
		    else if(PlayerInfo[playerid][pJob] == 19) {
		    SendClientMessage(playerid,COLOR_YELLOW2,":: POSAO :: /startdrugharvest /stopdrugharvest"); }
		    else if(PlayerInfo[playerid][pJob] == 20) {
		    SendClientMessage(playerid,COLOR_YELLOW2,":: POSAO :: /smuggledrugs /selldrugsto"); }
		    else if(PlayerInfo[playerid][pJob] == 21) {
		    SendClientMessage(playerid,COLOR_YELLOW2,":: POSAO :: /startsweep /stopsweep"); }
		    else if(PlayerInfo[playerid][pJob] == 22) {
		    SendClientMessage(playerid,COLOR_YELLOW2,":: POSAO :: /smugglemats"); }
		    else if(PlayerInfo[playerid][pJob] == 23) {
		    SendClientMessage(playerid,COLOR_YELLOW2,":: POSAO :: /creategun /buymats"); }
            else if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8) {
		    SendClientMessage(playerid,COLOR_YELLOW2,":: HITMAN :: /portable"); }
			if (gTeam[playerid] == 1 || PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)
			{
				SendClientMessage(playerid, COLOR_YELLOW2, ":: HITNA POMOC :: (/r)adio (/d)epartments /heal /duty /tracelastcall(/tlc)");
			}
			if (PlayerInfo[playerid][pAdmin] >= 1)
			{
				SendClientMessage(playerid, COLOR_YELLOW, ":: ADMIN :: (/a)dmin (/ah)elp");
			}
			SendClientMessage(playerid, COLOR_GRAD6,":: OSTALO :: /cellphonehelp /househelp /notehelp /vehiclehelp /renthelp /businesshelp /leaderhelp /fishhelp /cookhelp /irchelp");
		}
		return 1;
	}
Reply
#2

This is not a request section
Reply
#3

Where is the request section if this is not?
btw..help me
Reply
#4

Try this one. There you can request Scripts.
Reply
#5

thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)