14.09.2013, 13:20
hooola buenos dias
tengo un problema con un comando que estoy haciendo con dialogs xD
este es el comando
y el dialog seria asi no?
no me da errores, el problema es que, cuando hago el comando osea en el juego, llega hasta donde selecciono el team que voy a usar, no me manda a la zona solicitada osea no funca, alguien me dice porque? ayuda D: !?
RafaelZam
tengo un problema con un comando que estoy haciendo con dialogs xD
este es el comando
pawn Код:
CMD:baseattack(playerid, params[])
{
if(gPlayerClass[playerid] != Spy) return SendClientMessage(playerid, COLOR_red, " you cant use this command, only spy class can use it");
{
ShowPlayerDialog(playerid, 1001, DIALOG_STYLE_LIST, "Choose a TEAM", "\nTeam 1\nteam 2\nteam 3\nteam4\n team5\n","Choose","Cancel");
GivePlayerWeapon(playerid, 46, 1);
SendClientMessage(playerid, COLOR_red2, "parachute added");
}
return 1;
}
pawn Код:
if(dialogid == 1001)
{
if(response)
{
if(listitem == 0)
{
SetPlayerPos(playerid,-845.4827,64.3361,83.0848);
GivePlayerMoney(playerid, -5000);
SendClientMessage(playerid, COLOR_red2, "now attack him !!!!!! this is sparta !! :D! have fun");
}
if(listitem == 1)
{
SetPlayerPos(playerid,-996.1952,29.6250,223.4596);
GivePlayerMoney(playerid, -5000);
SendClientMessage(playerid, COLOR_red2, "now attack him !!!!!! this is sparta !! :D! have fun");
}
if(listitem == 2)
{
SetPlayerPos(playerid,-2258.9268,2369.1401,5.1497);
GivePlayerMoney(playerid, -5000);
SendClientMessage(playerid, COLOR_red2, "now attack him !!!!!! this is sparta !! :D! have fun");
}
if(listitem == 3)
{
SetPlayerPos(playerid,-1464.7240,2593.2456,55.8359);
GivePlayerMoney(playerid, -5000);
SendClientMessage(playerid, COLOR_red2, "now attack him !!!!!! this is sparta !! :D! have fun");
}
if(listitem == 4)
{
SetPlayerPos(playerid,-2254.6904,2341.6365,4.8125,30.4450);
GivePlayerMoney(playerid, -5000);
SendClientMessage(playerid, COLOR_red2, "now attack him !!!!!! this is sparta !! :D! have fun");
}
}
}
return 1;
}
RafaelZam