[Ajuda] Dъvida com mSelection
#5

Quote:
Originally Posted by InsaneBR
PHP код:
public OnPlayerModelSelection(playeridresponselistidmodelid

    if(
listid == SEULISTID
    { 
        if(!
response) return 1
         
//Isto й o que vocк precisa: 
         
switch(modelid
         { 
            case 
MODELID: { 
                
//funзгo ao selecionar este modelid 
            

            case 
outroMODELID: { 
                
//funзгo ao selecionar este modelid 
            

            
//... etc 
        

    } 
    return 
1

@EDIT

Consegui fazer uma base de como vou fazer:

PHP код:
public OnPlayerModelSelection(playeridresponselistidmodelid)
{
    if(
listid == VeiculosList)
    {
        if(!
response)
            return 
1;
        new 
Float:Pos[4];
        
GetPlayerPos(playeridPos[0], Pos[1], Pos[2]);
        
GetPlayerFacingAngle(playeridPos[3]);
        switch(
modelid)
        {
            case 
400:
            {
                
CreateVehicle(400Pos[0], Pos[1], Pos[2], Pos[3], 00, -1);
            }
            case 
401:
            {
                
CreateVehicle(401Pos[0], Pos[1], Pos[2], Pos[3], 00, -1);
            }
            case 
402:
            {
                
CreateVehicle(402Pos[0], Pos[1], Pos[2], Pos[3], 00, -1);
            }
            case 
404:
            {
                
CreateVehicle(404Pos[0], Pos[1], Pos[2], Pos[3], 00, -1);
            }
        }
    }
    return 
1;

Vlw flw!
Reply


Messages In This Thread
Dъvida com mSelection - by Raayzeck - 15.08.2018, 23:14
Re: Dъvida com mSelection - by Santso - 15.08.2018, 23:29
Re: Dъvida com mSelection - by Raayzeck - 15.08.2018, 23:33
Re: Dъvida com mSelection - by InsaneBR - 15.08.2018, 23:54
Re: Dъvida com mSelection - by SIZET - 15.08.2018, 23:58
Re: Dъvida com mSelection - by Santso - 16.08.2018, 00:32
Re: Dъvida com mSelection - by SIZET - 16.08.2018, 00:49
Re: Dъvida com mSelection - by Raayzeck - 16.08.2018, 00:53
Re: Dъvida com mSelection - by InsaneBR - 16.08.2018, 01:38
Re: Dъvida com mSelection - by Raayzeck - 16.08.2018, 02:22

Forum Jump:


Users browsing this thread: 2 Guest(s)