[Ajuda] Comandos param quando adiciono FS
#4

Код:
#include <a_samp>

#if defined FILTERSCRIPT
#endif
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/gps", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid,3,DIALOG_STYLE_LIST,"GPS","Test1\nTest2\nTest3\nTest4\nTest5\nTest6\nDisable GPS","Selec","Close");
return false;
}
return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
	return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(response)
{
switch(dialogid)
{
case 3: // dialog id
{
switch(listitem)
{
case 0:///////// LEMBRAR SEMPRE DOS NUMEROS DO CASE, CRESCENTE.
{
SendClientMessage(playerid,0xFFFFFFC8,"One checkpoint was set up on the map to the destination.");
SetPlayerCheckpoint(playerid, 1.93, 19.3, 6, 3.0);
}
case 1:
{
SendClientMessage(playerid,0xFFFFFFC8,"One checkpoint was set up on the map to the destination.");
SetPlayerCheckpoint(playerid, 1.93, 19.3, 6, 3.0);
}
case 2:
{
SendClientMessage(playerid,0xFFFFFFC8,"One checkpoint was set up on the map to the destination.");
SetPlayerCheckpoint(playerid, 1.93, 19.3, 6, 3.0);
}
case 3:
{
SendClientMessage(playerid,0xFFFFFFC8,"One checkpoint was set up on the map to the destination.");
SetPlayerCheckpoint(playerid, 1.93, 19.3, 6, 3.0);
}
case 4:
{
SendClientMessage(playerid,0xFFFFFFC8,"One checkpoint was set up on the map to the destination.");
SetPlayerCheckpoint(playerid, 1.93, 19.3, 6, 3.0);
}
case 5:
{
SendClientMessage(playerid,0xFFFFFFC8,"One checkpoint was set up on the map to the destination.");
SetPlayerCheckpoint(playerid, 1.93, 19.3, 6, 3.0);
}
case 6:
{ //////////////// DESABILITA O CHECK POINT
SendClientMessage(playerid,0xFFFFFFC8,"You has disable marker on GPS map.");
DisablePlayerCheckpoint(playerid);
}
}
}
}
}
return 1;
}
Mano, fiz isso... ta dando mesma coisa, e tenho um outro script q da o mesmo. TO preocupado agora em nao conseguir ADD mais FL, pois adicionar esses comandos no proprio GM, eu nao sei, tenho que aprender muito ainda.

KKKKKK Eu to muito corajoso, ja paguei atй host, pra poder montar esse server. O GM й o PPC Trucking. de caminhao.

Vlw mano
Reply


Messages In This Thread
Comandos param quando adiciono FS - by AlexandreRangelMamut - 14.03.2014, 17:39
Re: Comandos param quando adiciono FS - by VeNuZ_ - 14.03.2014, 18:20
Re: Comandos param quando adiciono FS - by JonathanFeitosa - 14.03.2014, 18:25
Re: Comandos param quando adiciono FS - by AlexandreRangelMamut - 14.03.2014, 18:41
Respuesta: Comandos param quando adiciono FS - by Matthy - 05.06.2014, 20:46
Re: Comandos param quando adiciono FS - by Luucass - 06.06.2014, 14:14

Forum Jump:


Users browsing this thread: 1 Guest(s)