SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Português/Portuguese

Reply
 
Thread Tools Display Modes
Old 30/07/2017, 07:33 PM   #1
PedroH
Huge Clucker
 
Join Date: Jul 2017
Posts: 337
Reputation: 5
Default Excluir item da GM

Ola, eu estou editando uma GM de dayz é nao sei muito sobre pawn, entao, eu quero trirar um item dos respawn! eu apago a linha dele aqui:
PHP Code:
new ItemInfo[][Item_Data] =
{
    
/* id, objeto, nome, rotacao x, rotacao y, rotacao z */
    /* ============ [ Mochilas ] ============ */
    
{0,   3026,       "Taloon Backpack",    -88.3990.00.0 },
    {
1,   1310,       "Hunting Backpack",   -90.2990.00.0 },
    {
2,   19559,      "Hiker Backpack",     -91.7990.00.0 },
    {
3,   1550,       "Drybag Backpack",    0.0, -94.8990.0 },
    
/* ========== [ Items Medicos ] ========== */
    
{4,   11738,      "Medical Kit",        0.00.00.0     },
    {
5,   11748,      "Bandage",            0.00.00.0     },
    {
6,   2752,       "Morphine Injector",  0.00.00.0     },
    {
7,   2709,       "Painkiller",         0.00.00.0     },
    {
8,   1580,       "Blood Bag",          0.00.00.0     },
    
/* ============= [ Bebidas ] ============= */
    
{9,    19570,     "Fresh Milk",         0.00.00.0     },
    {
10,   2683,      "Water Canteen",      0.00.00.0     },
    {
11,   1546,      "Sprunk Can",         0.00.00.0     },
    {
12,   19823,     "Whisky Bottle",      0.00.00.0     },
    {
13,   19563,     "Orange Juice",       0.00.00.0     },
    {
14,   19564,     "Apple Juice",        0.00.00.0     },
    {
15,   19835,     "Coffee",             0.00.00.0     },
    
/* ============= [ Comidas ] ============= */
    
{16,   19847,     "Leg Ham",            0.00.00.0     },
    {
17,   19883,     "Bread Slice",        0.00.00.0     },
    {
18,   2768,      "Burger",             0.00.00.0     },
    {
19,   19561,     "Cereal Box",         0.00.00.0     },
    {
20,   19580,     "Pizza",              0.00.00.0     },
    {
21,   2769,      "Taco",               0.00.00.0     },
    {
22,   19567,     "Ice Cream",          0.00.00.0     },
    {
23,   2858,      "Chinese Food",       0.00.00.0     },
    {
24,   19574,     "Orange",             0.00.00.0     },
    {
25,   19575,     "Apple",              0.00.00.0     },
    {
26,   19576,     "Green Apple",        0.00.00.0     },
    {
27,   19577,     "Tomato",             0.00.00.0     },
    {
28,   19578,     "Banana",             0.00.00.0     },
    
/* ============= [ Armas ] ============= */
    
{29,   348,       "Pistol .50",         90.00.00.0    },
    {
30,   346,       "Glock 19",           90.00.00.0    },
    {
31,   347,       "M9 SD",              90.00.00.0    },
    {
32,   357,       "Mosin 9130",         90.00.00.0    },
    {
33,   358,       "Hunting Rifle",      90.00.00.0    },
    {
34,   356,       "M4A1",              90.00.00.0    },
    {
35,   355,       "AKS-74U",            90.00.00.0    },
    {
36,   349,       "MP-133 Shotgun",     90.00.00.0    },
    {
37,   350,       "Sawed-off IZH-43",   90.00.00.0    },
    {
38,   351,       "Pump Shotgun",       90.00.00.0    },
    {
39,   372,       "CZ61 Skorpion",      90.00.00.0    },
[
COLOR="Red"]    {41,   352,       "PDW",                90.00.00.0    },[/COLOR]
    {
42,   353,       "MP5-K",              90.00.00.0    },
    
/* ============= [ Armas Brancas ] ============= */
    
{42,   336,       "Baseball Bat",       90.00.00.0    },
    {
43,   339,       "Katana",              90.00.00.0    },
    {
44,   335,       "Combat Knife",       90.00.00.0    },
    {
45,   337,       "Shovel",             90.00.00.0    },
    
/* ============= [ Granadas ] ============= */
    
{46,   342,       "Frag Grenade",       0.00.00.0     },
    
/* ============= [ Munições ] ============= */
    
{47,   3013,      "Assault Ammo",       0.00.00.0     },
    {
48,   2043,      "Shotgun Ammo",       0.00.00.0     },
    {
49,   2042,      "SMG Ammo",           0.00.00.0     },
    {
50,   2037,      "Pistol Ammo",        0.00.00.0     },
    {
51,   2038,      "Sniper Ammo",        0.00.00.0     },
    
/* ============= [ Variados ] ============= */
    
{52,   18875,     "GPS",                0.00.00.0     },
    {
53,   2386,      "Clothing",           0.00.00.0     },
    {
54,   1010,      "Engine",             0.00.00.0     },
    {
55,   19921,     "Toolbox",            0.00.00.0     },
    {
56,   2967,      "Radio Device",       0.00.00.0     },
    {
57,   19515,     "Armour Vest",        90.00.00.0    },
    {
58,   19472,     "Gas Mask",           0.00.00.0     },
    {
59,   19514,     "Helmet",             0.00.00.0     },
    {
60,   1650,      "Fuel Canister",      90.00.00.0    },
    
/* ============= [ Vazios ] ============= */
    
{61,   2683,  "Empty Water Canteen",    0.00.00.0     },
    {
62,   1650,  "Empty Fuel Canister",    90.00.00.0    }
}; 




e tiro tudo que tem dele no modulo que e:

PHP Code:
    if(!strcmp(ItemName,"PDW",true))
    {
        
RemoveItem(playeridItemName1);
        
CreateDrop(40XYZ);
    } 
mas so que quando vou iniciar a GM, da algum conflito pq nao spawna os veiculos e nem os items! aqui vai o server_log:


COM O ITEM:
PHP Code:
----------
Loaded log file"server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3.7-R2, (C)2005-2015 SA-MP Team

[16:20:29
[
16:20:29Server Plugins
[16:20:29] --------------
[
16:20:29]  Loading pluginsscanf.dll
[16:20:29

[
16:20:29]  ===============================

[
16:20:29]       sscanf plugin loaded.     

[
16:20:29]          Version:  2.8.1        

[16:20:29]    (c2012 Alex "******" Cole  

[16:20:29]  ===============================

[
16:20:29]   Loaded.
[
16:20:29]  Loading pluginstreamer.dll
[16:20:29

*** 
Streamer Plugin v2.9.1 by Incognito loaded ***

[
16:20:29]   Loaded.
[
16:20:29]  Loaded 2 plugins.

[
16:20:29
[
16:20:29Ban list
[
16:20:29] --------
[
16:20:29]  Loadedsamp.ban
[16:20:29
[
16:20:29
[
16:20:29Filterscripts
[16:20:29] ---------------
[
16:20:29]   Loading filterscript 'iTD.amx'...
[
16:20:29]   Loading filterscript 'Score.amx'...
[
16:20:29Sistema de salvamento de Score carregado!
[
16:20:29]   Loading filterscript 'barulhodano.amx'...
[
16:20:29]   Unable to load filterscript 'barulhodano.amx'.
[
16:20:29]   Loading filterscript 'hs.amx'...
[
16:20:29

__________________________________________________________________
[16:20:29]  Boom Headshot System by Johnson_boy loaded!
[
16:20:29]  Copyright Johnson_boy 2010
[16:20:29__________________________________________________________________


[16:20:29]   Loading filterscript 't-t.amx'...
[
16:20:29]   Loaded 4 filterscripts.

[
16:20:29]  
[
16:20:29]  Admin System by Nexius loaded!
[
16:20:29]  Version2.1
[16:20:29]  
[
16:20:29] | INFO |: 577 ITEMS INDUSTIAIS FORAM SPAWNADOS.
[
16:20:30] | INFO |: 1616 ITEMS RESIDENCIAIS FORAM SPAWNADOS.
[
16:20:30] | INFO |: 121 ITEMS RURAIS FORAM SPAWNADOS.
[
16:20:30] | INFO |: 169 ITEMS MERCADORIAIS FORAM SPAWNADOS.
[
16:20:30] | INFO |: 82 ITEMS MILITARES FORAM SPAWNADOS.
[
16:20:30
----------------------------------
[
16:20:30]  Survive the Apocalypse Iniciado!
[
16:20:30] ----------------------------------

[
COLOR="red"][16:20:30Number of vehicle models34[/COLOR
SEM O ITEM:
PHP Code:
----------
Loaded log file"server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3.7-R2, (C)2005-2015 SA-MP Team

[16:21:34
[
16:21:34Server Plugins
[16:21:34] --------------
[
16:21:34]  Loading pluginsscanf.dll
[16:21:34

[
16:21:34]  ===============================

[
16:21:34]       sscanf plugin loaded.     

[
16:21:34]          Version:  2.8.1        

[16:21:34]    (c2012 Alex "******" Cole  

[16:21:34]  ===============================

[
16:21:34]   Loaded.
[
16:21:34]  Loading pluginstreamer.dll
[16:21:34

*** 
Streamer Plugin v2.9.1 by Incognito loaded ***

[
16:21:34]   Loaded.
[
16:21:34]  Loaded 2 plugins.

[
16:21:34
[
16:21:34Ban list
[
16:21:34] --------
[
16:21:34]  Loadedsamp.ban
[16:21:34
[
16:21:34
[
16:21:34Filterscripts
[16:21:34] ---------------
[
16:21:34]   Loading filterscript 'iTD.amx'...
[
16:21:34]   Loading filterscript 'Score.amx'...
[
16:21:34Sistema de salvamento de Score carregado!
[
16:21:34]   Loading filterscript 'barulhodano.amx'...
[
16:21:34]   Unable to load filterscript 'barulhodano.amx'.
[
16:21:34]   Loading filterscript 'hs.amx'...
[
16:21:34

__________________________________________________________________
[16:21:34]  Boom Headshot System by Johnson_boy loaded!
[
16:21:34]  Copyright Johnson_boy 2010
[16:21:34__________________________________________________________________


[16:21:34]   Loading filterscript 't-t.amx'...
[
16:21:34]   Loaded 4 filterscripts.

[
16:21:34]  
[
16:21:34]  Admin System by Nexius loaded!
[
16:21:34]  Version2.1
[16:21:34]  
[
16:21:34
----------------------------------
[
16:21:34]  Survive the Apocalypse Iniciado!
[
16:21:34] ----------------------------------

[
COLOR="red"][16:21:34Number of vehicle models0[/COLOR
sera que tem alguma coisa a mais que eu preciso apaga na gm para remover ele?

Last edited by PedroH; 30/07/2017 at 08:57 PM.
PedroH is offline   Reply With Quote
Old 30/07/2017, 08:25 PM   #2
GuilhermeNunes
Gangsta
 
Join Date: Feb 2017
Posts: 550
Reputation: 8
Default Re: Excluir item da GM

cara usa php no codigo pra ficar pequeno assm
PHP Code:
Codigo 
GuilhermeNunes is offline   Reply With Quote
Old 30/07/2017, 08:57 PM   #3
PedroH
Huge Clucker
 
Join Date: Jul 2017
Posts: 337
Reputation: 5
Default Re: Excluir item da GM

Quote:
Originally Posted by GuilhermeNunes View Post
cara usa php no codigo pra ficar pequeno assm
PHP Code:
Codigo 
Obrigado, nao sabia disso!
PedroH is offline   Reply With Quote
Old 02/08/2017, 05:06 PM   #4
PedroH
Huge Clucker
 
Join Date: Jul 2017
Posts: 337
Reputation: 5
Default Re: Excluir item da GM

UP

alguem ajuda?
PedroH is offline   Reply With Quote
Old 02/08/2017, 07:58 PM   #5
PedroH
Huge Clucker
 
Join Date: Jul 2017
Posts: 337
Reputation: 5
Default Re: Excluir item da GM

Quote:
Originally Posted by Carlos001 View Post
Não é só apagar algumas Linhas, nota-se que o sistema de Items é por ID então se apagar o item cujo id e 10 terá que ajeitar todos os outros ID porque imagina do ID 9 pula para o 11? então se apagar por exemplo {5, ...} {6,...} {7,...} Então se apagar o 6 ficara {5,...} {7,...} então terar que ir mudando os ID {5,..}, {7,..} para {5,..} e {6,..}, {7,..}, {8,..} é assim por diante
tlgd! ja fiz isso mas nao resolveu!
PedroH is offline   Reply With Quote
Old 02/08/2017, 08:09 PM   #6
Andinho
Huge Clucker
 
Andinho's Avatar
 
Join Date: Apr 2016
Location: Bezerros PE
Posts: 341
Reputation: 14
Default Re: Excluir item da GM

Code:

for(new i; i<sizeof(ItemInfo); i++)
{
	if(!strcmp(ItemInfo[i][2],"PDW",true))// aki pega o nome de acordo com o ID do slot.
    {
        RemoveItem(playerid, ItemInfo[i][2], 1);
        CreateDrop(40, X, Y, Z);
        break;
    }
}

//acho que isso seria necessario, espero ter ajudado.
__________________
Battle royale vai ficar pra dps.

[ RPG em desenvolvimento ]

Last edited by Andinho; 03/08/2017 at 01:02 AM.
Andinho is offline   Reply With Quote
Old 02/08/2017, 11:43 PM   #7
PedroH
Huge Clucker
 
Join Date: Jul 2017
Posts: 337
Reputation: 5
Default Re: Excluir item da GM

Quote:
Originally Posted by Andinho View Post
Code:

for(new i; i<sizeof(); i++)
{
	if(!strcmp(ItemInfo[i][2],"PDW",true))// aki pega o nome de acordo com o ID do slot.
    {
        RemoveItem(playerid, ItemName, 1);
        CreateDrop(40, X, Y, Z);
        break;
    }
}

//acho que isso seria necessario, espero ter ajudado.
nao entendi
PedroH is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Ajuda] EXCLUIR GZ paulotuto Português/Portuguese 2 27/12/2016 10:37 AM
bag system error, item can only replace the item on slop 0 Chrisli520 Scripting Help 0 28/11/2013 08:49 PM
Como Excluir um org? Moraes_Lost Português/Portuguese 8 23/11/2012 04:15 PM


All times are GMT. The time now is 02:34 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.