14.03.2014, 18:41
(
Последний раз редактировалось AlexandreRangelMamut; 14.03.2014 в 19:14.
Причина: Code errado
)
Код:
#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; }
KKKKKK Eu to muito corajoso, ja paguei atй host, pra poder montar esse server. O GM й o PPC Trucking. de caminhao.
Vlw mano