18.06.2011, 10:14
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
switch(dialogid)
{
case lenguage:
{
if(response)
{
switch(listitem)// Checking which listitem was selected
{
case 0://english
{
gLenguage[ playerid ] = 0 ;
SendClientMessage(playerid, RED, "Welcome to our server type /help");
}
case 1: //french
{
SendClientMessage(playerid, RED, "bienvenue /help");
gLenguage[ playerid ] = 1 ;
}
case 2: ///////////esnol/////////////
{
SendClientMessage(playerid, RED, "bien venido a nuestro serve, escribe /help");
gLenguage[ playerid ] = 2 ;
}
case 3: // deutch
{
SendClientMessage(playerid, RED, "welcome /help");
gLenguage[ playerid ] = 3 ;
}
}
}
return 1;
}
case dialodonator:
{
if(!response)return SendClientMessage(playerid, GREY, "visit www.t-vi.gamerzfun.com");
SendClientMessage(playerid, GREY, "visit www.t-vi.gamerzfun.com");
return 1;
}
}
return 0;
}