PHP код:
public OnPlayerClickTextDraw(playerid, Text:clickedid){
if(clickedid == Text:INVALID_TEXT_DRAW){
if(GetPVarInt(playerid, "vMochila") && !GetPVarInt(playerid, "guardando")){
HideMochila(playerid);
}
if(GetPVarInt(playerid, "vportamala") && !GetPVarInt(playerid, "guardando")){
HidePortaMala(playerid);
}
}
else if(clickedid == textdraw_1){
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "Insert", "Insert", "Ok", "Exit");
}
if(GetPVarInt(playerid, "skinc_active") == 0) return 0;
// Handle: They cancelled (with ESC)
else if(clickedid == Text:INVALID_TEXT_DRAW) {
DestroySelectionMenu(playerid);
SetPVarInt(playerid, "skinc_active", 0);
PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
return 1;
}
return 1;
}