SA-MP Forums Archive
Help /help![rep] - 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 /help![rep] (/showthread.php?tid=312811)



Help /help![rep] - Dan_Barocu - 22.01.2012

i want the /help thing all in a dialog box...

all of this o tried ones but it didnt work.... please help im giving rep heres on example:http://imageshack.us/photo/my-images/703/samp034ab.png/ and at the bottom a button that says "close" and in upper corner to appear Help please help me i tried it lots of times.but didnt work.


Код:
if(strcmp(cmd, "/help", true) == 0)
		{
		    if(IsPlayerConnected(playerid))
		    {
		        SendClientMessage(playerid, COLOR_GREEN,":: ACCOUNT :: /reguli /stats /account /changename");
				SendClientMessage(playerid, COLOR_GREEN,":: GENERAL :: /pay /charity /time /buy /unrentcar /unRentveh /switchkey /id /drink /clothes /wo /knock /doorshout /resetspawn");
				SendClientMessage(playerid, COLOR_GREEN,":: GENERAL :: /resetupgrades(50k) /buygun /lock /skill /licenses /showlicenses /ajutor /anim /stopanim /use");
				SendClientMessage(playerid, COLOR_LIGHTRED,":: GENERAL :: /report /cancel /accept /eject /usedrugs /contract /fill /admins (/f)actionlist /gps /chatmode /fightstyle /(de)attachweapon");
				SendClientMessage(playerid, COLOR_LIGHTBLUE,":: GENERAL ::  /coin (/inv)entory /knock /knockout /give /gateopen /sid /smoke /(sur)render /cophelp /selectspawn");
	            SendClientMessage(playerid, COLOR_LEMON,":: CAR :: /trunk /muzicaon /muzicaopreste ");
	            SendClientMessage(playerid, COLOR_LIGHTRED,":: CHAT :: (/o)oc /me /(ad)vertise (/cw)hisper (/s)hout /(w)hisper (/b) /(l)ocal (/f)action /me /do /togfam /togpm /togphone");
				SendClientMessage(playerid, COLOR_ORANGE,":: BANCA :: /balance /withdraw /deposit /wiretransfer /atm");
	     	    if(PlayerInfo[playerid][pLeader] == 14 || PlayerInfo[playerid][pMember] == 14)
				{
	   				SendClientMessage(playerid, COLOR_YELLOW2, ":: Yamaguchi :: (/r)adio (/jap)aneese /steal");
	   			}
	   			if(PlayerInfo[playerid][pLeader] == 15 || PlayerInfo[playerid][pMember] == 15)
				{
	   				SendClientMessage(playerid, COLOR_YELLOW2, ":: Chornaya Bratva :: (/r)adio (/rus)sian");
	   			}
	   			if(PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pMember] == 5)
				{
	   				SendClientMessage(playerid, COLOR_YELLOW2, ":: Surenos :: (/r)adio (/spa)nish /steal");
	   			}
	   			if(PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pMember] == 6)
				{
	   				SendClientMessage(playerid, COLOR_YELLOW2, ":: La Famiglia Sinatra :: /gateopen /tuningopen (/r)adio /italian");
	   			}
	            if(PlayerInfo[playerid][pJob] == 1) {
			    SendClientMessage(playerid,COLOR_YELLOW2,":: JOB - Detective:: /find"); }
			    else if(PlayerInfo[playerid][pJob] == 2) {
			    SendClientMessage(playerid,COLOR_YELLOW2,":: JOB - Lawyer :: /free"); }
			    else if(PlayerInfo[playerid][pJob] == 3) {
			    SendClientMessage(playerid,COLOR_YELLOW2,":: JOB - Whore :: /sex"); }
			    else if(PlayerInfo[playerid][pJob] == 4) {
			    SendClientMessage(playerid,COLOR_YELLOW2,":: JOB - Drug Dealer :: /selldrugs /get drugs"); }
			    else if(PlayerInfo[playerid][pJob] == 5) {
			    SendClientMessage(playerid,COLOR_YELLOW2,":: JOB - Car Jacker :: /dropcar"); }
			    else if(PlayerInfo[playerid][pJob] == 6) {
			    SendClientMessage(playerid,COLOR_YELLOW2,":: JOB - Waiter :: /showmenu /cookuniform"); }
			    else if(PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9) {
			    SendClientMessage(playerid,COLOR_YELLOW2,":: JOB - News Reporter :: /paper /papers /live /news [text]"); }
			    else if(PlayerInfo[playerid][pJob] == 7) {
			    SendClientMessage(playerid,COLOR_YELLOW2,":: JOB - Mechanic :: /repair /refill /duty /tow"); }
			    else if(PlayerInfo[playerid][pJob] == 8) {
			    SendClientMessage(playerid,COLOR_YELLOW2,":: JOB - Bodyguard :: /guard"); }
			    else if(PlayerInfo[playerid][pJob] == 10) {
			    SendClientMessage(playerid,COLOR_YELLOW2,":: JOB - Car Dealer :: /sellcar"); }
			    else if(PlayerInfo[playerid][pJob] == 11) {
			    SendClientMessage(playerid,COLOR_YELLOW2,":: JOB - Stuntman :: /startstunt /stopstunt"); }
			    else if(PlayerInfo[playerid][pJob] == 12) {
			    SendClientMessage(playerid,COLOR_YELLOW2,":: JOB - Boxer :: /fight /boxstats"); }
			    else if(PlayerInfo[playerid][pJob] == 13 || PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10) {
			    SendClientMessage(playerid,COLOR_YELLOW2,":: JOB - Taxi Driver :: /fare "); }
			    else if(PlayerInfo[playerid][pJob] == 14) {
			    SendClientMessage(playerid,COLOR_YELLOW2,":: JOB - Bus Driver:: /fare"); }
			    else if(PlayerInfo[playerid][pJob] == 15) {
			    SendClientMessage(playerid,COLOR_YELLOW2,":: JOB - Paper Boy :: /papers /bring /deliver"); }
			    else if(PlayerInfo[playerid][pJob] == 16) {
			    SendClientMessage(playerid,COLOR_YELLOW2,":: JOB - Trucker :: /buyprods /sellprods /load"); }
			    else if(PlayerInfo[playerid][pJob] == 17) {
			    SendClientMessage(playerid,COLOR_YELLOW2,":: JOB - Pizza Boy :: /duty /sellpizza"); }
			    else if(PlayerInfo[playerid][pJob] == 18) {
			    SendClientMessage(playerid,COLOR_YELLOW2,":: JOB - Farmer :: /startharvest /stopharvest"); }
			    else if(PlayerInfo[playerid][pJob] == 19) {
			    SendClientMessage(playerid,COLOR_YELLOW2,":: JOB - Illegal Farmer :: /startdrugharvest /stopdrugharvest"); }
			    else if(PlayerInfo[playerid][pJob] == 20) {
			    SendClientMessage(playerid,COLOR_YELLOW2,":: JOB - Drugs Smuggler :: /smuggledrugs /selldrugsto"); }
			    else if(PlayerInfo[playerid][pJob] == 21) {
			    SendClientMessage(playerid,COLOR_YELLOW2,":: JOB - Street Sweeper :: /startsweep /stopsweep"); }
			    else if(PlayerInfo[playerid][pJob] == 22) {
			    SendClientMessage(playerid,COLOR_YELLOW2,":: JOB - Materials Smuggler :: /smugglemats /sellmats"); }
			    else if(PlayerInfo[playerid][pJob] == 23) {
			    SendClientMessage(playerid,COLOR_YELLOW2,":: JOB - Arms Dealer:: /creategun /buymats"); }
	            else if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8) {
			    SendClientMessage(playerid,COLOR_YELLOW2,":: HITMAN :: /portable"); }
			    if(PlayerInfo[playerid][pMember] == 11||PlayerInfo[playerid][pLeader] == 11){
			    SendClientMessage(playerid,COLOR_YELLOW2,":: TIGANII :: /f /team"); }

				if (PlayerInfo[playerid][pAdmin] >= 1)
				{
					SendClientMessage(playerid, COLOR_GROVE, ":: ADMIN :: /admin /ahelp");
				}
				SendClientMessage(playerid, COLOR_LIGHTRED,":: OTHER :: /phonehelp /househelp /notehelp /vehiclehelp /renthelp /businesshelp /leaderhelp /fishhelp /cookhelp /irchelp /derbyhelp");
			}
			new y, m, d;
			new h,mi,s;
			getdate(y,m,d);
			gettime(h,mi,s);
			format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s [CMD] -> /help",d,m,y,h,mi,s,sendername);
			CommandLog(string);
			return 1;



Re: Help /help![rep] - Polomikey - 22.01.2012

What command processor you using?


Re: Help /help![rep] - Dan_Barocu - 22.01.2012

what do you mean?


Re: Help /help![rep] - Polomikey - 22.01.2012

Are you using
ZCMD or dcmd?


Re: Help /help![rep] - Dan_Barocu - 22.01.2012

ZCMD i think.


Re: Help /help![rep] - Dan_Barocu - 22.01.2012

anybody helping?im giving rep dont forget please help


Re: Help /help![rep] - MP2 - 22.01.2012

Quote:
Originally Posted by Polomikey
Посмотреть сообщение
What command processor you using?
Are you blind? He posted the code, he's not using a command processor clearly. He's using strcmp.


Re: Help /help![rep] - Scrillex - 22.01.2012

What is your prob? message doesn't showing up? or doesn't showing in dialog?


Re: Help /help![rep] - Dan_Barocu - 22.01.2012

i want it to show in a dialog box like in the picture plz


Re: Help /help![rep] - Bogdan1992 - 22.01.2012

https://sampwiki.blast.hk/wiki/ShowPlayerDialog