How to change from if command to zcmd
#1

So maked a engine system.. but I have big prob.. I need from if command to zcmd... how to do it?

Код:
	if(strcmp("/vehctrl", cmdtext, true, 10) == 0)
	{
		ShowVehicleControlDialog(playerid);
		return 1;
	}
And one thing.. How to make out pop-up dialog in cars


Maybe some one can help me out, thanks for your time and have a nice day..
Reply
#2

pawn Код:
CMD:vehctrl(playerid, params[])
{
    ShowVehicleControlDialog(playerid);
    return 1;
}
Reply
#3

http://forum.sa-mp.com/showthread.ph...highlight=zcmd

and

https://sampwiki.blast.hk/wiki/How_to_Create_a_Dialog
Reply
#4

Quote:
Originally Posted by trapped1
Посмотреть сообщение
So maked a engine system.. but I have big prob.. I need from if command to zcmd... how to do it?

Код:
	if(strcmp("/vehctrl", cmdtext, true, 10) == 0)
	{
		ShowVehicleControlDialog(playerid);
		return 1;
	}
And one thing.. How to make out pop-up dialog in cars


Maybe some one can help me out, thanks for your time and have a nice day..
Код:
	CMD::vehctrl(playerid, params[])
	{
		ShowVehicleControlDialog(playerid);
		return 1;
	}
Reply
#5

pawn Код:
CMD:vehctrl(playerid,params[])
{
     ShowVehicleControlDialog(playerid);
     return 1;
}
Reply
#6

I had only a prob with ShowVehicleControlDialog(playerid); I tryed to use some difrent way.. Thanks guys And have a nice day
Reply
#7

About that dialog.. How to make it when player gets in the car the dialog pops-up. and cars engine is turned off? Thank you for answer again.

Sorry for doublepost
Reply
#8

Use OnPlayerEnterVehicle.
Reply
#9

HERE and HERE
Reply
#10

You need to change the strcmp part to:
pawn Код:
CMD:commandhere(playerid, params[])
So a blank command is looking like;
pawn Код:
CMD:test(playerid, params[])
{
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)