07.03.2015, 14:30
Код:
if (dialogid == AC) { if (response) { if (listitem == 0) { SetPlayerAttachedObject(playerid, 0, 18688, 1, 0.637365, 0.053019, -1.688286, 0.000000, 0.000000, 0.000000, 1.780604, 1.000000, 1.000000); SendClientMessage(playerid, -1, "[INFO] Objeto adicionado."); } if (listitem == 1) { SetPlayerAttachedObject(playerid, 0, 354, 1, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000); SendClientMessage(playerid, -1, "[INFO] Objeto adicionado."); } if (listitem == 2) { SetPlayerAttachedObject(playerid, 0, 18687, 1, -0.406525, 0.009434, -0.032377, 0.000000, 0.000000, 202.416427, 0.001289, 1.000000, -0.007566); SendClientMessage(playerid, -1, "[INFO] Objeto adicionado."); } if (listitem == 3) { SetPlayerAttachedObject(playerid, 0, 18715, 1, 0.000000, 0.298801, -2.006434, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000); SendClientMessage(playerid, -1, "[INFO] Objeto adicionado."); } if (listitem == 4) { SetPlayerAttachedObject(playerid, 0, 18749, 1, 0.216044, 0.143199, 0.013695, 188.990158, 91.275924, 351.489166, 1.000000, 1.000000, 1.000000); SendClientMessage(playerid, -1, "[INFO] Objeto adicionado."); } if (listitem == 5) { SetPlayerAttachedObject(playerid, 0, 18885, 1, 0.102385, 0.143199, 0.013695, 188.990158, 91.275924, 351.489166, 1.000000, 1.000000, 1.000000); SendClientMessage(playerid, -1, "[INFO] Objeto adicionado."); } if (listitem == 6) { SetPlayerAttachedObject(playerid, 0, 1254, 2, 0.044820, 0.000000, 0.000000, 355.581451, 98.455726, 2.350319, 1.030146, 1.000000, 1.000000); SendClientMessage(playerid, -1, "[INFO] Objeto adicionado."); } if (listitem == 7) { SetPlayerAttachedObject(playerid, 0, 19036, 18, -0.019684, -0.072573, -0.000471, 94.378379, 317.653259, 8.513540, 1.000000, 1.000000, 1.000000); SendClientMessage(playerid, -1, "[INFO] Objeto adicionado."); } if (listitem == 8) { SetPlayerAttachedObject(playerid, 0, 19159, 2, 0.057312, 0.000000, 0.000000, 0.000000, 221.321487, 0.000000, 1.000000, 1.000000, 1.000000); SendClientMessage(playerid, -1, "[INFO] Objeto adicionado."); } if (listitem == 9) { SetPlayerAttachedObject(playerid, 0, 19273, 1, 0.013907, 0.180363, -0.017651, 6.410546, 88.485328, 176.497161, 0.932541, 1.000000, 0.925644); SendClientMessage(playerid, -1, "[INFO] Objeto adicionado."); } if (listitem == 10) { SetPlayerAttachedObject(playerid, 0, 647, 1, 0.013907, 0.180363, -0.017651, 6.410546, 88.485328, 176.497161, 0.932541, 1.000000, 0.925644); SendClientMessage(playerid, -1, "[INFO] Objeto adicionado."); } if (listitem == 11) { SetPlayerAttachedObject(playerid, 0, 1608, 1, 0.013907, 0.180363, -0.017651, 6.410546, 88.485328, 176.497161, 0.932541, 1.000000, 0.925644); SendClientMessage(playerid, -1, "[INFO] Objeto adicionado."); } if (listitem == 12) { GivePlayerWeapon(playerid, 46, 1); SendClientMessage(playerid, -1, "[INFO] Paraquedas adicionado."); } if (listitem == 13) { GivePlayerWeapon(playerid, 43, 500); SendClientMessage(playerid, -1, "[INFO] Camera Fotografica adicionado."); } if (listitem == 14) { RemovePlayerAttachedObject(playerid,0); SendClientMessage(playerid, -1, "[INFO] Objeto retirado."); } } }