[Ajuda] Ajuda
#8

Quote:
Originally Posted by GuilhermeNunes
Посмотреть сообщение
Aprendeu a pegar coordenadas ?
isso ja sei

Quote:
Originally Posted by Carlos001
Посмотреть сообщение
PQP! oque coordenadas tem A ver com esse sistema? mds
Entгo vamos ao sistema:
PHP код:
public Item_OnPlayerKeyStateChange(playeridnewkeysoldkeys

    if(
GetPlayerState(playerid) == PLAYER_STATE_ONFOOT
    { 
     if (
GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_DUCK
        if(
PRESSED(KEY_NO)) 
        { 
            new 
str[80], itemid;
            for(new 
iMAX_DROPSi++)  
            { 
                if(
IsPlayerInRangeOfPoint(playerid1.5DropInfo[i][dPosX], DropInfo[i][dPosY], DropInfo[i][dPosZ])) 
                {  
                    
itemid DropInfo[i][DropItemID]; 
                    
format(strsizeof(str), "%s%s\n"strItemInfo[itemid][Item_Name]);
                } 
            } 
            if(
Player[playerid][pIdioma] == 1ShowPlayerDialog(playeridD_PegarItemDIALOG_STYLE_TABLIST_HEADERS"{FFFFFF}Voce deseja adicionar este item ao seu inventario ?"str"Pegar""Fechar"); 
            else 
ShowPlayerDialog(playeridD_PegarItemDIALOG_STYLE_TABLIST_HEADERS"{FFFFFF}You want to add this item to your inventory ?"str"Take""Close"); 
        } 
        if(
PRESSED(KEY_YES)) ShowInventory(playerid); 
    } 
Nгo testei nгo sei se irar funcionar..
quase la! ficou assim: http://i.imgur.com/8TDgtKI.png

й tipo nao importa em qual o player clique. ele sempre ira pegar o primeiro item da lista ou seja nesse caso a Bandage!

mas eu acho que esse bug deve ta por aqui:
PHP код:
public OnPlayerPickupItemFromDrop(playerid)
{
    for(new 
iMAX_DROPSi++) 
    {
        if(
IsPlayerInRangeOfPoint(playerid1.5DropInfo[i][dPosX], DropInfo[i][dPosY], DropInfo[i][dPosZ]))
        {
            new 
str[80],
                
itemid DropInfo[i][DropItemID];
            
format(strsizeof(str), "~w~(~y~%s~w~)~n~ added to your inventory."ItemInfo[itemid][Item_Name]);
            
GameTextForPlayer(playerid,str,2500,4);
            
ClearAnimations(playerid);
               
ApplyAnimation(playerid"BOMBER""BOM_Plant"4.000004000);
            
AddItem(playeridItemInfo[itemid][Item_Name], 1);
            return 
1;
        }
    }
    return 
1;

Reply


Messages In This Thread
Ajuda - by PedroH - 01.08.2017, 23:00
Re: Ajuda - by PedroH - 04.08.2017, 17:21
Re: Ajuda - by GuilhermeNunes - 04.08.2017, 17:44
Re: Ajuda - by PedroH - 04.08.2017, 19:26
Re: Ajuda - by GuilhermeNunes - 04.08.2017, 19:42
Re: Ajuda - by GuilhermeNunes - 04.08.2017, 21:54
Re: Ajuda - by Carlos001 - 04.08.2017, 22:25
Re: Ajuda - by PedroH - 04.08.2017, 23:52
Re: Ajuda - by [BOPE]Seu._.Madruga - 04.08.2017, 23:56
Re: Ajuda - by GuilhermeNunes - 05.08.2017, 00:16

Forum Jump:


Users browsing this thread: 2 Guest(s)