29.05.2011, 01:43
pawn Code:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (PRESSED(KEY_SPRINT))
{
ShowPlayerDialog(...123,...);
}
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 123)
{
if(response == 0)
{
..."vocк nгo digitou nada"
return 1;
}
if(response >= 1)
{
if(strval(inputtext) == 12345) ? SendClientMessage(playerid, 0xFFFFFFAA, "Vocк dgitou a senha 12345.") : SendClientMessage(playerid, 0xFFFFFFAA, "Vocк digitou a senha errada.");
return 1;
}
}
return 1;
}