Need help. Checkpoint
#5

Quote:
Originally Posted by Nin9r
Посмотреть сообщение
Make a command to place a checkpoint:

Код HTML:
new CP[MAX_PLAYERS];
Код HTML:
CMD:CP(playerid, params[])
{
		SetPlayerCheckpoint(playerid, x,y,z, 5.0);
               CP[playerid] = 400;
		return 1;
}
Now go to public OnPlayerEnterCheckpoint(playerid)

Place:

Код HTML:
if(CP[playerid] == 400)
		{
		    new mesajdaw[2048];
	            new param0[64],param1[100],param2[100],param3[100],param4[100],param5[100],param6[100],param10[100];
	            param10 = "Name\tPrice";
	            param0 = "{669999}Desert Eagle\t{FFFFFF}20,000$.";
	            param1 = "{669999}M4-A1\t{FFFFFF}30,000$.";
	            param2 = "{669999}AK-47\t{FFFFFF}25,000$.";
	            param3 = "{669999}SD Pistol\t{FFFFFF}10,000$.";
	            param4 = "{669999}Baseball Bat\t{FFFFFF}9,000$.";
	            param5 = "{669999}Combat Shotgun\t{FFFFFF}20,000$.";
	            param6 = "{669999}MP5\t{FFFFFF}20,000$.";
				format(mesajdaw, sizeof(mesajdaw), "%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s",param10,param0,param1,param2,param3,param4,param5,param6);
   				ShowPlayerDialog(playerid, 2223, DIALOG_STYLE_TABLIST_HEADERS, "{669999}Choose to buy:",mesajdaw, "Buy", "Cancel");
		}
Dp you know how to finish it?
Did you read what this guy posted? ^^^

He gave you the directions you needed. Try that in your script and ask us here if you have any error. no one will script a full code for you mate. Use Wiki to see how checkpoints work.
Reply


Messages In This Thread
Need help. Checkpoint - by ongnung147 - 09.05.2017, 09:48
Re: Need help. Checkpoint - by Nin9r - 09.05.2017, 10:05
Re: Need help. Checkpoint - by ongnung147 - 09.05.2017, 11:11
Re: Need help. Checkpoint - by ongnung147 - 09.05.2017, 15:12
Re: Need help. Checkpoint - by GTLS - 10.05.2017, 08:45

Forum Jump:


Users browsing this thread: 2 Guest(s)