Some snippets

Parazitas

Well-Known Member
Joined
Jan 2, 2017
Messages
1,598
Likes
202
Points
78
Location
Lithuania
Website
ugbase.eu
15
#1
0.3.7 - R1
PHP:
:ShowDialog
{
    0.3.7 - R1
    0AB1: @ShowDialog 6 id 1000 caption [email protected] text [email protected] button_1 [email protected] button_2 [email protected] style 2
}
IF 0AA2: [email protected] = "samp.dll"
THEN
    0A8E: [email protected] = [email protected] + 0x21A0B8 // SAMP_DIALOG_INFO_OFFSET
    0A8D: [email protected] = readMem [email protected] sz 4 vp 1
    0A8E: [email protected] = [email protected] + 0x6B9C0 //SAMP_DIALOG_SHOW
    0AA6: call_method [email protected] struct [email protected] num_params 7 pop 0 params 0 RightButton [email protected] LeftButton [email protected] dText [email protected] Caption [email protected] dType [email protected] dID [email protected] bServerside 0 _retVal [email protected]
END
0AB2: 0

:SetDialogInputEditBoxText
{
    0.3.7 - R1
    0AB1: @SetDialogInputEditBoxText 2 => text [email protected] selected 0
}
if 0AA2: [email protected] = "samp.dll"
then
    0A8E: [email protected] = [email protected] + 0x21A0B8            // SAMP_DIALOG_INFO_OFFSET (R1)
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0     // pDialog;
    0A8E: [email protected] = [email protected] + 0x24                // pDialog->pEditBox;
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0     // pEditBox;
   
    0A8E: [email protected] = [email protected] + 0x80F60 // CDXUTEditBox::GetText (offset for 0.3.7 R1)
   
    // CDXUTEditBox::SetText takes 2 params
    // 1 - pointer to zero terminated string
    // 2 - bool, if text is to be selected or not
   
    0AA8: call_function_method [email protected] struct [email protected] num_params 2 pop 0 _bSelected [email protected] _pszText [email protected] _retVal [email protected]
end
0AB2: 0


:GetDialogInputEditBoxText
{
    0.3.7 - R1
    0AB1: @GetDialogInputEditBoxText 0 _Return: [email protected]
}
if 0AA2: [email protected] = "samp.dll"
then
    0A8E: [email protected] = [email protected] + 0x21A0B8            // SAMP_DIALOG_INFO_OFFSET (R1)
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0     // pDialog;
    0A8E: [email protected] = [email protected] + 0x24                // pDialog->pEditBox;
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0     // pEditBox;
   
    0A8E: [email protected] = [email protected] + 0x81030 // CDXUTEditBox::GetText (offset for 0.3.7 R1)
   
    0AA8: call_function_method [email protected] struct [email protected] num_params 0 pop 0 _Return: [email protected]
end
0AB2: 1 [email protected]

:GetCurrentDialogListItem
{
    0.3.7 - R1
    0AB1: @GetCurrentDialogListItem 0 _Return: [email protected]
}
if 0AA2: [email protected] = "samp.dll"
then
    0A8E: [email protected] = [email protected] + 0x21A0B8         
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0     
    0A8E: [email protected] = [email protected] + 0x20                
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0     
   
    0A8E: [email protected] = [email protected] + 0x84850
   
    0AA8: call_function_method [email protected] struct [email protected] num_params 1 pop 0 -1 _Return: [email protected]
end
0AB2: 1 [email protected]

:CloseCurrentDialogWithButton
{
    0.3.7 - R1
    0AB1: @CloseCurrentDialogWithButton 1 Button 0 // 1 = Left , 0 = Right
}
IF 0AA2: [email protected] = "samp.dll"
THEN  
    0A8E: [email protected] = [email protected] + 0x21A0B8 // SAMP_DIALOG_INFO_OFFSET
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    0A8E: [email protected] = [email protected] +  0x6C040 //SAMP_DIALOG_CLOSE
    0AA8: call_function_method [email protected] struct [email protected] num_params 1 pop 0 Button [email protected] _retVal [email protected]
END
0AB2: 0
0.3.7 - R2
PHP:
:ShowDialog
{
    0.3.7 - R2
    0AB1: @ShowDialog 6 id 1000 caption [email protected] text [email protected] button_1 [email protected] button_2 [email protected] style 2
}
IF 0AA2: [email protected] = "samp.dll"
THEN
    0A8E: [email protected] = [email protected] + 0x21A0C0 // SAMP_DIALOG_INFO_OFFSET
    0A8D: [email protected] = readMem [email protected] sz 4 vp 1
    0A8E: [email protected] = [email protected] + 0x6BA70 //SAMP_DIALOG_SHOW
    0AA6: call_method [email protected] struct [email protected] num_params 7 pop 0 params 0 RightButton [email protected] LeftButton [email protected] dText [email protected] Caption [email protected] dType [email protected] dID [email protected] bServerside 0 _retVal [email protected]
END
0AB2: 0

:SetDialogInputEditBoxText
{
    0.3.7 - R2
    0AB1: @SetChatInputEditBoxText 2 => text [email protected] selected 0
}
if 0AA2: [email protected] = "samp.dll"
then
    0A8E: [email protected] = [email protected] + 0x21A0C0            // SAMP_DIALOG_INFO_OFFSET (R1)
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0     // pDialog;
    0A8E: [email protected] = [email protected] + 0x24                // pDialog->pEditBox;
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0     // pEditBox;
   
    0A8E: [email protected] = [email protected] + 0x81000 // CDXUTEditBox::GetText (offset for 0.3.7 R1)
   
    // CDXUTEditBox::SetText takes 2 params
    // 1 - pointer to zero terminated string
    // 2 - bool, if text is to be selected or not
   
    0AA8: call_function_method [email protected] struct [email protected] num_params 2 pop 0 _bSelected [email protected] _pszText [email protected] _retVal [email protected]
end
0AB2: 0


:GetDialogInputEditBoxText
{
    0.3.7 - R2
    0AB1: @GetDialogInputText 0 _Return: [email protected]
}
if 0AA2: [email protected] = "samp.dll"
then
    0A8E: [email protected] = [email protected] + 0x21A0C0            // SAMP_DIALOG_INFO_OFFSET (R1)
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0     // pDialog;
    0A8E: [email protected] = [email protected] + 0x24                // pDialog->pEditBox;
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0     // pEditBox;
   
    0A8E: [email protected] = [email protected] + 0x810D0 // CDXUTEditBox::GetText (offset for 0.3.7 R1)
   
    0AA8: call_function_method [email protected] struct [email protected] num_params 0 pop 0 _Return: [email protected]
end
0AB2: 1 [email protected]

:CloseCurrentDialogWithButton
{
    0.3.7 - R2
    0AB1: @CloseCurrentDialogWithButton 1 Button 0 // 1 = Left , 0 = Right
}
IF 0AA2: [email protected] = "samp.dll"
THEN  
    0A8E: [email protected] = [email protected] + 0x21A0C0 // SAMP_DIALOG_INFO_OFFSET
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    0A8E: [email protected] = [email protected] +  0x6C0F0 //SAMP_DIALOG_CLOSE
    0AA8: call_function_method [email protected] struct [email protected] num_params 1 pop 0 [email protected] $NOT_USED
END
0AB2: 0

:GetCurrentDialogListItem
{
    0.3.7 - R2
    0AB1: @GetCurrentDialogListItem 0 _Return: [email protected]
}
if 0AA2: [email protected] = "samp.dll"
then
    0A8E: [email protected] = [email protected] + 0x21A0C0         
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0     
    0A8E: [email protected] = [email protected] + 0x20                
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0     
   
    0A8E: [email protected] = [email protected] + 0x848F0
   
    0AA8: call_function_method [email protected] struct [email protected] num_params 1 pop 0 -1 _Return: [email protected]
end
0AB2: 1 [email protected]

0.3.7 - R3
PHP:
:ShowDialog
{
    0.3.7 - R3
    0AB1: @ShowDialog 6 id 1000 caption [email protected] text [email protected] button_1 [email protected] button_2 [email protected] style 2
}
IF 0AA2: [email protected] = "samp.dll"
THEN
    0A8E: [email protected] = [email protected] + 0x26E898 // SAMP_DIALOG_INFO_OFFSET
    0A8D: [email protected] = readMem [email protected] sz 4 vp 1
    0A8E: [email protected] = [email protected] + 0x6F8C0 //SAMP_DIALOG_SHOW
    0AA6: call_method [email protected] struct [email protected] num_params 7 pop 0 params 0 RightButton [email protected] LeftButton [email protected] dText [email protected] Caption [email protected] dType [email protected] dID [email protected] bServerside 0 _retVal [email protected]
END
0AB2: 0

:SetDialogInputEditBoxText
{
    0.3.7 - R3
    0AB1: @SetChatInputEditBoxText 2 => text [email protected] selected 0
}
if 0AA2: [email protected] = "samp.dll"
then
    0A8E: [email protected] = [email protected] + 0x26E898            // SAMP_DIALOG_INFO_OFFSET (R1)
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0     // pDialog;
    0A8E: [email protected] = [email protected] + 0x24                // pDialog->pEditBox;
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0     // pEditBox;
   
    0A8E: [email protected] = [email protected] + 0x84E70 // CDXUTEditBox::GetText (offset for 0.3.7 R1)
   
    // CDXUTEditBox::SetText takes 2 params
    // 1 - pointer to zero terminated string
    // 2 - bool, if text is to be selected or not
   
    0AA8: call_function_method [email protected] struct [email protected] num_params 2 pop 0 _bSelected [email protected] _pszText [email protected] _retVal [email protected]
end
0AB2: 0


:GetDialogInputEditBoxText
{
    0.3.7 - R3
    0AB1: @GetDialogInputText 0 _Return: [email protected]
}
if 0AA2: [email protected] = "samp.dll"
then
    0A8E: [email protected] = [email protected] + 0x26E898            // SAMP_DIALOG_INFO_OFFSET (R1)
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0     // pDialog;
    0A8E: [email protected] = [email protected] + 0x24                // pDialog->pEditBox;
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0     // pEditBox;
   
    0A8E: [email protected] = [email protected] + 0x84F40 // CDXUTEditBox::GetText (offset for 0.3.7 R1)
   
    0AA8: call_function_method [email protected] struct [email protected] num_params 0 pop 0 _Return: [email protected]
end
0AB2: 1 [email protected]

:CloseCurrentDialogWithButton
{
    0.3.7 - R3
    0AB1: @CloseCurrentDialogWithButton 1 Button 0 // 1 = Left , 0 = Right
}
IF 0AA2: [email protected] = "samp.dll"
THEN  
    0A8E: [email protected] = [email protected] + 0x26E898 // SAMP_DIALOG_INFO_OFFSET
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    0A8E: [email protected] = [email protected] +  0x6FF40 //SAMP_DIALOG_CLOSE
    0AA8: call_function_method [email protected] struct [email protected] num_params 1 pop 0 [email protected] $NOT_USED
END
0AB2: 0

:GetCurrentDialogListItem
{
    0.3.7 - R3
    0AB1: @GetCurrentDialogListItem 0 _Return: [email protected]
}
if 0AA2: [email protected] = "samp.dll"
then
    0A8E: [email protected] = [email protected] + 0x26E898         
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0     
    0A8E: [email protected] = [email protected] + 0x20                
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0     
   
    0A8E: [email protected] = [email protected] + 0x88760
   
    0AA8: call_function_method [email protected] struct [email protected] num_params 1 pop 0 -1 _Return: [email protected]
end
0AB2: 1 [email protected]

0.3.DL
PHP:
:ShowDialog
{
    0.3.DL
    0AB1: @ShowDialog 6 id 1000 caption [email protected] text [email protected] button_1 [email protected] button_2 [email protected] style 2
}
IF 0AA2: [email protected] = "samp.dll"
THEN
    0A8E: [email protected] = [email protected] + 0x2AC9E0 // SAMP_DIALOG_INFO_OFFSET
    0A8D: [email protected] = readMem [email protected] sz 4 vp 1
    0A8E: [email protected] = [email protected] + 0x6FA50 //SAMP_DIALOG_SHOW
    0AA6: call_method [email protected] struct [email protected] num_params 7 pop 0 params 0 RightButton [email protected] LeftButton [email protected] dText [email protected] Caption [email protected] dType [email protected] dID [email protected] bServerside 0 _retVal [email protected]
END
0AB2: 0

:SetDialogInputEditBoxText
{
    0.3.DL
    0AB1: @SetChatInputEditBoxText 2 => text [email protected] selected 0
}
if 0AA2: [email protected] = "samp.dll"
then
    0A8E: [email protected] = [email protected] + 0x2AC9E0            // SAMP_DIALOG_INFO_OFFSET (R1)
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0     // pDialog;
    0A8E: [email protected] = [email protected] + 0x24                // pDialog->pEditBox;
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0     // pEditBox;
   
    0A8E: [email protected] = [email protected] + 0x85000 // CDXUTEditBox::GetText (offset for 0.3.7 R1)
   
    // CDXUTEditBox::SetText takes 2 params
    // 1 - pointer to zero terminated string
    // 2 - bool, if text is to be selected or not
   
    0AA8: call_function_method [email protected] struct [email protected] num_params 2 pop 0 _bSelected [email protected] _pszText [email protected] _retVal [email protected]
end
0AB2: 0


:GetDialogInputEditBoxText
{
    0.3.DL
    0AB1: @GetDialogInputText 0 _Return: [email protected]
}
if 0AA2: [email protected] = "samp.dll"
then
    0A8E: [email protected] = [email protected] + 0x2AC9E0            // SAMP_DIALOG_INFO_OFFSET (R1)
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0     // pDialog;
    0A8E: [email protected] = [email protected] + 0x24                // pDialog->pEditBox;
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0     // pEditBox;
   
    0A8E: [email protected] = [email protected] + 0x850D0 // CDXUTEditBox::GetText (offset for 0.3.7 R1)
   
    0AA8: call_function_method [email protected] struct [email protected] num_params 0 pop 0 _Return: [email protected]
end
0AB2: 1 [email protected]

:CloseCurrentDialogWithButton
{
    0.3.DL
    0AB1: @CloseCurrentDialogWithButton 1 Button 0 // 1 = Left , 0 = Right
}
IF 0AA2: [email protected] = "samp.dll"
THEN  
    0A8E: [email protected] = [email protected] + 0x2AC9E0 // SAMP_DIALOG_INFO_OFFSET
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0
    0A8E: [email protected] = [email protected] + 0x700D0 //SAMP_DIALOG_CLOSE
    0AA8: call_function_method [email protected] struct [email protected] num_params 1 pop 0 [email protected] $NOT_USED
END
0AB2: 0

:GetCurrentDialogListItem
{
    0.3.DL
    0AB1: @GetCurrentDialogListItem 0 _Return: [email protected]
}
if 0AA2: [email protected] = "samp.dll"
then
    0A8E: [email protected] = [email protected] + 0x2AC9E0         
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0     
    0A8E: [email protected] = [email protected] + 0x20                
    0A8D: [email protected] = readMem [email protected] sz 4 vp 0     
   
    0A8E: [email protected] = [email protected] + 0x888F0
   
    0AA8: call_function_method [email protected] struct [email protected] num_params 1 pop 0 -1 _Return: [email protected]
end
0AB2: 1 [email protected]
 
Top