samp cmd skins
#7

Quote:
Originally Posted by Gammix
Посмотреть сообщение
You don't need "PHONE_IDS", i made that for wepons dialog because weaponid and weapon model have different values.

Here is how you should do it:
PHP код:
new PHONE_MODELS[] = { 
    
18871188721887418866 
}; 
new 
PHONE_NAMES[][] = { 
    
"iPhone""Samsung""Nokia""Motorola" 
}; 
CMD:phones(playerid) { 
    
// for adjusting every model rotation
    
for (new 0sizeof(PHONE_MODELS); i++) {
        
SetDialogPreviewRotation(playeridirxryrzzoom); // put your values here
    
}
    return 
ShowPreviewModelDialog(playerid0"Phone Selection Dialog"PHONE_MODELSPHONE_NAMES"Select""Cancel"); 
}
public 
OnDialogResponse(playeriddialogidresponselistiteminputtext[]) {
    if (
dialogid == 0) {
        if (
response) {
            switch (
listitem) {
                case 
0: {} // iphone
                
case 1: {} // samsung
                // and so on....
            
}
        }
    }
    return 
1;

Thank you.
Reply


Messages In This Thread
samp cmd dialog - by Zeus666 - 20.04.2018, 22:24
Re: samp cmd skins - by Sew_Sumi - 20.04.2018, 22:37
Re: samp cmd skins - by Zeus666 - 20.04.2018, 22:40
Re: samp cmd skins - by Sew_Sumi - 20.04.2018, 22:49
Re: samp cmd dialog - by Zeus666 - 20.04.2018, 22:53
Re: samp cmd skins - by Gammix - 20.04.2018, 23:47
Re: samp cmd skins - by Zeus666 - 21.04.2018, 07:31

Forum Jump:


Users browsing this thread: 1 Guest(s)