[Ajuda] Checkpoints randфmicos
#1

Olб galera, tudo bem ? Venho novamente pedir a ajuda de vocкs para solucionar meu problema aqui. Bem, vamos lб!
Eu preciso fazer um sistema que faзa um sorteio de um conjunto de coordenadas para a minha profissгo, mas eu nгo estou conseguindo... Eu dei uma olhada no tutorial do NathanLive(https://sampforum.blast.hk/showthread.php?tid=157478), mas nгo estou conseguindo adaptar o que ele fez no meu GM.
Ai vai os cуdigos:

Comando:
Код:
//COMANDO CAMINHONEIRO
	if(strcmp(cmdtext, "/mcarga", true) == 0)
	{
	    
	    new rand = random(sizeof(Cargas));
	    SetPlayerCheckpoint(playerid, Cargas[rand][0], Cargas[rand][1], Cargas[rand][2], Cargas[rand][3], Cargas[rand][4], Cargas[rand][5], Cargas[rand][6], Cargas[rand][7], Cargas[rand][8], Cargas[rand][9], 3.0);
	    return 1;
	}
Variбvel Cargas:
Код:
new Float:Cargas[10][3] = {
	{-2041.2926,-2386.7451,30.1984},
	{-1571.7614,-2733.3157,48.1070},
	{-1656.7499,-2240.2173,31.2983},
	{21.9379,-2648.6987,40.0474},
	{-23.3117,-2506.0486,36.2155},
	{-1085.3257,-1645.5614,75.9392},
	{-2023.5060,157.5564,28.4007},
	{-2791.1409,-444.5565,7.2820},
	{-1705.8510,397.4526,6.7311},
	{-1881.1149,1388.2993,6.7540}
};
Conto com a ajuda de vocкs. Obrigado.
Reply


Messages In This Thread
Checkpoints randфmicos - by RafaelOsio - 11.01.2015, 23:54
Re: Checkpoints randфmicos - by MultiKill - 12.01.2015, 00:11
Re: Checkpoints randфmicos - by RafaelOsio - 12.01.2015, 00:33
Re: Checkpoints randфmicos - by MultiKill - 12.01.2015, 01:02
Re: Checkpoints randфmicos - by RafaelOsio - 12.01.2015, 12:13

Forum Jump:


Users browsing this thread: 1 Guest(s)