[Ajuda] Inventario
#1

PHP код:
public OnPlayerKeyStateChange(playeridnewkeys)
{
    if(
newkeys == KEY_CROUCH)
        {
            if(
GetPlayerSpecialAction(playerid) != SPECIAL_ACTION_DUCK) return true;
            for(new 
0MAX_SERVER_ITENSi++) {
            if(
mundoItens[i][mItem_ativo] == false) continue;
            if(!
IsPlayerInRangeOfPoint(playerid1.0mundoItens[i][mItem_x], mundoItens[i][mItem_y], mundoItens[i][mItem_z])) continue;
        for(new 
021b++)
        {
        if(
pInventario[playerid][b][inv_item_index] == 0)
        {
        
pInventario[playerid][b][inv_item_index] = serverItens[mundoItens[b][mItem_index]][sItem_modelo];
        
PlayerTextDrawSetPreviewModel(playeridITENS_INV[b][playerid], serverItens[mundoItens[i][mItem_index]][sItem_modelo]);
        break;
        }
    }
}
    return 
1;

o item nao vai pro inventario '-'
Reply
#2

estб fazendo uma gamemode survival ? se sim add skype : ribeirinho225
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)