18.12.2011, 19:54
Solved
if(response)
{
switch(dialogid) //Wasn't it supposed to be the dialog ID we check ?
{
case 1: // This has to be the Mission Dialog ID
{
switch(listitem)
{
case 0:
{
GameTextForPlayer(playerid,"~g~ Mission Started",6000,4);
SendClientMessage(playerid,COLOR_GREEN,"[Mission]"COL_WHITE" You've started the mission go to the checkpoint bring the food back where you started the mission");
CP1[playerid] = CreateDynamicCP(-2046.3822,-98.9697,35.1641, 4.0, -1, -1, -1, 100.0);
SetPlayerMapIcon( playerid, 40, -1974.5985,283.9495,35.1719, 44, 0, MAPICON_GLOBAL ); // Icon
}
case 1:
{
GameTextForPlayer(playerid,"~g~ Mission Started",6000,4);
SendClientMessage(playerid,COLOR_GREEN,"[Mission]"COL_WHITE" You've started the mission go to the checkpoint bring the illegal drugs back");
CP2[playerid] = CreateDynamicCP(-2058.5967,298.9871,35.5170, 4.0, -1, -1, -1, 100.0);
}
case 2:
{
GameTextForPlayer(playerid,"~g~ Mission Started",6000,4);
SendClientMessage(playerid,COLOR_GREEN,"[Mission]"COL_WHITE" You've started the mission go to the checkpoint block the parking lot then come back");
CP3[playerid] = CreateDynamicCP(-1978.2013,433.3388,25.7169, 4.0, -1, -1, -1, 100.0);
}
case 3:
{
GameTextForPlayer(playerid,"~g~ Mission Started",6000,4);
SendClientMessage(playerid,COLOR_GREEN,"[Mission]"COL_WHITE" You've started the mission go to the checkpoint block bring the heorine drug back");
CP4[playerid] = CreateDynamicCP(-1904.3420,301.9783,41.0469, 4.0, -1, -1, -1, 100.0);
}
case 4:
{
GameTextForPlayer(playerid,"~g~ Mission Started",6000,4);
SendClientMessage(playerid,COLOR_GREEN,"[Mission]"COL_WHITE" You've started the mission go to the checkpoint destroy the building by planting bombs then come back");
CP5[playerid] = CreateDynamicCP(-2048.0786,93.9378,28.3782, 4.0, -1, -1, -1, 100.0);
}
case 5:
{
GameTextForPlayer(playerid,"~g~ Mission Started",6000,4);
SendClientMessage(playerid,COLOR_GREEN,"[Mission]"COL_WHITE" You've started the mission go to the checkpoint bring back the item");
CP6[playerid] = CreateDynamicCP(-2168.4529,251.6463,35.3291, 4.0, -1, -1, -1, 100.0);
}
case 6:
{
GameTextForPlayer(playerid,"~g~ Mission Started",6000,4);
SendClientMessage(playerid,COLOR_GREEN,"[Mission]"COL_WHITE" You've started the mission go to the checkpoint bring back the item");
CP7[playerid] = CreateDynamicCP(-2054.0435,456.3511,35.1719, 4.0, -1, -1, -1, 100.0);
}
case 7:
{
GameTextForPlayer(playerid,"~g~ Mission Started",6000,4);
SendClientMessage(playerid,COLOR_GREEN,"[Mission]"COL_WHITE" You've started the mission go to the checkpoint bring back the item");
CP8[playerid] = CreateDynamicCP(-1967.5151,278.7552,35.1719, 4.0, -1, -1, -1, 100.0);
}
case 8:
{
GameTextForPlayer(playerid,"~g~ Mission Started",6000,4);
SendClientMessage(playerid,COLOR_GREEN,"[Mission]"COL_WHITE" You've started the mission go to the checkpoint bring back the item");
CP9[playerid] = CreateDynamicCP(-2143.5083,-258.7738,40.7195, 4.0, -1, -1, -1, 100.0);
}
case 9:
{
GameTextForPlayer(playerid,"~g~ Mission Started",6000,4);
SendClientMessage(playerid,COLOR_GREEN,"[Mission]"COL_WHITE" You've started the mission go to the checkpoint bring back the item");
CP10[playerid] = CreateDynamicCP(-2024.3243,67.1108,28.4456, 4.0, -1, -1, -1, 100.0);
}
}
}
}
}