18.03.2015, 08:06
Hi,
now i have a bug, when im /teles then click my DriftMap, im not teleported in my DriftMap, im already make OnDialogResponse, this the code
its my drift commands
please help me, im using Syntax Game Mode Edited By Biker22
Thanks and sorry for my bad english.
now i have a bug, when im /teles then click my DriftMap, im not teleported in my DriftMap, im already make OnDialogResponse, this the code
PHP код:
if(dialogid == DIALOG_TELES)
{
if(response)
{
if(listitem == 0) ShowPlayerDialog(playerid, DIALOG_AIRPORTS, DIALOG_STYLE_LIST, "Airports", "San Fierro Airport (/sfair) \nLos Santos Airport (/lsair) \nAbandonded Airport (/aa)", "Teleport", "Cancel");
if(listitem == 1) ShowPlayerDialog(playerid, DIALOG_CITY, DIALOG_STYLE_LIST, "City", "San Fierro (/sf) \nLas Venturas (/lv)", "Teleport", "Cancel");
if(listitem == 2) ShowPlayerDialog(playerid, DIALOG_PARKOURS, DIALOG_STYLE_LIST, "Parkours", "Bike skills 1 (/bikeskills) \nBike skills 2 (/bikeskills2)", "Teleport", "Cancel");
if(listitem == 3) ShowPlayerDialog(playerid, DIALOG_FUN, DIALOG_STYLE_LIST, "Fun", "Mount Chilliad (/chilliad) \nMonster Hay (/mh) \nHalfpipe (/hp) \n Waterpack (/wp)", "Teleport", "Cancel");
if(listitem == 4) ShowPlayerDialog(playerid, DIALOG_DM, DIALOG_STYLE_LIST, "Deathmatch", "Field DM (/fdm) \nMinigun Madness (/mini) \nWar DM (/war) \nRocket DM (/rdm) \nSawn-off DM (/sawndm) \nOne-Shot DM (/odm)", "Teleport", "Cancel");
if(listitem == 5) ShowPlayerDialog(playerid, DIALOG_NEW, DIALOG_STYLE_LIST, "New Maps", "Dreamy Land (/dreamyland) \nNascar (/nascar) \nSkyroad (/skyroad) \nBayside (/bayside)", "Teleport", "Cancel");
if(listitem == 6) ShowPlayerDialog(playerid, DIALOG_OTHERS, DIALOG_STYLE_LIST, "Others", "Transfender (/trans) \nArch (/arch)", "Teleport", "Cancel");
if(listitem == 7) ShowPlayerDialog(playerid, DIALOG_DRIFTMAP, DIALOG_STYLE_LIST, "DRIFT", "Drift1 (/drift1) \nDrift2 (/drift2) \nDrift3 (/drift3) \nDrift4 (/drift4) \nDrift5 (/drift5)", "Teleport", "Cancel");
}
}
if(dialogid == DIALOG_AIRPORTS)
{
if(response)
{
if(listitem == 0) cmd_sfair(playerid);
if(listitem == 1) cmd_lsair(playerid);
if(listitem == 2) cmd_aa(playerid);
}
}
if(dialogid == DIALOG_CITY)
{
if(response)
{
if(listitem == 0) cmd_sf(playerid);
if(listitem == 1) cmd_lv(playerid);
}
}
if(dialogid == DIALOG_PARKOURS)
{
if(response)
{
if(listitem == 0) cmd_bikeskills(playerid);
if(listitem == 1) cmd_bikeskills2(playerid);
}
}
if(dialogid == DIALOG_FUN)
{
if(response)
{
if(listitem == 0) cmd_chilliad(playerid);
if(listitem == 1) cmd_mh(playerid);
if(listitem == 2) cmd_hp(playerid);
if(listitem == 3) cmd_wp(playerid);
}
}
if(dialogid == DIALOG_DM)
{
if(response)
{
if(listitem == 0) cmd_fdm(playerid);
if(listitem == 1) cmd_mini(playerid);
if(listitem == 2) cmd_war(playerid);
if(listitem == 3) cmd_rdm(playerid);
if(listitem == 4) cmd_sawndm(playerid);
if(listitem == 5) cmd_odm(playerid);
}
}
if(dialogid == DIALOG_NEW)
{
if(response)
{
if(listitem == 0) cmd_dreamyland(playerid);
if(listitem == 1) cmd_nascar(playerid);
if(listitem == 2) cmd_skyroad(playerid);
if(listitem == 3) cmd_bayside(playerid);
}
}
if(dialogid == DIALOG_OTHERS)
{
if(response)
{
if(listitem == 0) cmd_trans(playerid);
if(listitem == 1) cmd_arch(playerid);
}
}
if(dialogid == DIALOG_DRIFT)
{
if(response)
{
if(listitem == 0) cmd_drift1(playerid);
if(listitem == 1) cmd_drift2(playerid);
if(listitem == 2) cmd_drift3(playerid);
if(listitem == 3) cmd_drift4(playerid);
if(listitem == 3) cmd_drift5(playerid);
}
}
PHP код:
CMD:drift1(playerid, params[])
{
SetPlayerPos(playerid, 5924.000,-4716.8574,112.5937);
SendClientMessageToAll(0x00B9FFFF, ""YELLOW"%s Has gone to "GREY" /drift1");
GameTextForPlayer(playerid, "Welcome To Drift1", 3000, 5);
new string[128], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(string, sizeof(string), "~r~%s ~w~has Teleported to ~y~/drift1",pName);
SetPlayerVirtualWorld(playerid, 0);
return 1;
}
CMD:drift2(playerid, params[])
{
SetPlayerPos(playerid, 546.1637,-3179.4543,6527.6553);
SendClientMessageToAll(0x00B9FFFF, ""YELLOW"%sHas gone to "GREY" /drift2");
GameTextForPlayer(playerid, "Welcome To Drift2", 3000, 5);
new string[128], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(string, sizeof(string), "~r~%s ~w~has Teleported to ~y~/drift2",pName);
SetPlayerVirtualWorld(playerid, 0);
return 1;
}
CMD:drift3(playerid, params[])
{
SetPlayerPos(playerid, 2036.4016,-1710.2401,671.7347);
SendClientMessageToAll(0x00B9FFFF, ""YELLOW"%sHas gone to "GREY" /drift3");
GameTextForPlayer(playerid, "Welcome To Drift3", 3000, 5);
new string[128], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(string, sizeof(string), "~r~%s ~w~has Teleported to ~y~/drift3",pName);
SetPlayerVirtualWorld(playerid, 0);
return 1;
}
CMD:drift4(playerid, params[])
{
SetPlayerPos(playerid, 4397.4355,-7.0702,3232.3000);
SendClientMessageToAll(0x00B9FFFF, ""YELLOW"%sHas gone to "GREY" /drift4");
GameTextForPlayer(playerid, "Welcome To Drift4", 3000, 5);
new string[128], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(string, sizeof(string), "~r~%s ~w~has Teleported to ~y~/drift4",pName);
SetPlayerVirtualWorld(playerid, 0);
return 1;
}
CMD:drift5(playerid, params[])
{
SetPlayerPos(playerid, 3263.0244,620.8406,229.9219);
SendClientMessageToAll(0x00B9FFFF, ""YELLOW"%sHas gone to "GREY" /drift5");
GameTextForPlayer(playerid, "Welcome To Drift5", 3000, 5);
new string[128], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
format(string, sizeof(string), "~r~%s ~w~has Teleported to ~y~/drift5",pName);
SetPlayerVirtualWorld(playerid, 0);
return 1;
}
Thanks and sorry for my bad english.