30.05.2011, 12:36
Well, that`s how it`s done, with if(response).
You can use either:
That`s the case for dialogs with 'items' in it. If you, for example want a rules dialog, which has only "OK" and "CANCEL" button, try:
You can use either:
pawn Код:
if(response)
{
if(listitem == 0) // If the player clicked on the first dialog line
{
//bla bla, your code here
}
else if(listitem == 1) // If the player clicked on the second dialog line
{
//bla bla
}
}
pawn Код:
if(response) // If he clicks First button
{
SendClientMessage(playerid, -1, "Have fun on our server");
}
else // If he clicks Second Button
{
SendClientMessage(playerid, -1, "You must accept our rules to play on this server");
Kick(playerid);
}