29.11.2014, 10:36
PHP код:
if(dialogid == TIMVIECLAM)
{
if(response)
{
if(listitem == 0) // Tham Tu
{
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
SetPlayerCheckpoint(playerid, 1555.5,-1675.59021,16.19531, 3.0);
CP[playerid] = 252000;
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Vao ben trong So Canh Sat gan chu J go /nhanviec .");
return 1;
}
if(listitem == 1) //Luat Su
{
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
SetPlayerCheckpoint(playerid, 1380.8955,-1088.6808,27.3844, 3.0);
CP[playerid] = 252000;
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Vao` ben trong gym cho~ locker an' /join.");
return 1;
}
if(listitem == 2) //Gai Diem
{
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
SetPlayerCheckpoint(playerid, 1555.26, -1675.76, 16.19, 3.0);
CP[playerid] = 252000;
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Vao ben trong Lau Xanh go /nhanviec.");
return 1;
}
if(listitem == 3) //Buon Thuoc Phien
{
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
SetPlayerCheckpoint(playerid, 2166.3772,-1675.3829,15.0859, 3.0);
CP[playerid] = 252000;
return 1;
}
if(listitem == 4) //Ve si
{
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
SetPlayerCheckpoint(playerid,-2269.256103, -158.054321, 35.320312, 3.0);
CP[playerid] = 252000;
return 1;
}
if(listitem == 5) //Tho Sua Xe
{
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
SetPlayerCheckpoint(playerid, -2032.601928, 143.866592, 28.835937, 3.0);
CP[playerid] = 252000;
return 1;
}
if(listitem == 6) //Buon Vu khi
{
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
SetPlayerCheckpoint(playerid, 1365.8473, -1275.4987, 13.5469, 3.0);
CP[playerid] = 252000;
return 1;
}
if(listitem == 7) //Vo si
{
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
SetPlayerCheckpoint(playerid, 766.0804,14.5133,1000.7004, 3.0);
CP[playerid] = 252000;
return 1;
}
if(listitem == 8) // Tai Xe Taxi
{
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
SetPlayerCheckpoint(playerid, 2354.2703,-1169.3293,28.0083, 3.0);
CP[playerid] = 252000;
return 1;
}
if(listitem == 9) // Van chuyen thuoc phien
{
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
SetPlayerCheckpoint(playerid, 2354.2808,-1169.2959,28.0066, 3.0);
CP[playerid] = 252000;
return 1;
}
if(listitem == 10) // Tho Thu Cong
{
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
SetPlayerCheckpoint(playerid, 2195.8335,-1973.0638,13.5589, 3.0);
CP[playerid] = 252000;
return 1;
}
if(listitem == 11) // Nguoi pha ruou
{
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
SetPlayerCheckpoint(playerid, 1836.2959,-1682.13721,13.35389, 3.0);
CP[playerid] = 252000;
return 1;
}
if(listitem == 12) // Tai Xe Cho hang
{
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
SetPlayerCheckpoint(playerid, 2438.0566, -2120.7471, 13.5469, 3.0);
CP[playerid] = 252000;
return 1;
}
if(listitem == 13) // Pizza Boy
{
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
SetPlayerCheckpoint(playerid, -1720.962646, 1364.456176, 7.187500, 3.0);
CP[playerid] = 252000;
return 1;
}
}
}
return 1;
}
PHP код:
CMD:timvieclam(playerid, params[])
{
ShowPlayerDialog(playerid, TIMVIECLAM, DIALOG_STYLE_LIST, "Tim Viec Lam ?","Tham Tu\nLuat Su\nGai diem\nNguoi buon ban thuoc phien\nTho Sua Xe\nVe Si\nDai ly Buon Sung\nVo Si\nTai Xe Taxi\nVan chuyen thuoc phien\nTho Thu Cong\nNguoi pha ruou\nTai Xe Cho hang\nPizza Boy", "Chon", "Huy Bo");
return 1;
}