[Ajuda] Gastar material e maconha
#1

Entгo. Eu quero que quando um membro de Gang ou Mбfia equipe, quero que:

Gaste 200 de material.

E o player, receba 50 de drogas, a que estiver abastecida na HQ.

O resto para receber armas etc ta certinho...

Numero de uma org que й gang: 5

Obrigado desde jб.
Reply
#2

Como voce quer ajuda se nem postou o Comando de equipar das gangues ou mafias, ae fica dificil de te ajudar.
Reply
#3

Aqui estб, desculpa.

Quote:

if(strcmp(cmd, "/equiparg", true) == 0)
{
new org = GetPlayerOrg(playerid);
if(org == 5 || org == 14 || org == 17 || org == 18 || org == 19 || org == 20 || org == 21 || org == 23 || org == 22 || org == 24 || org == 25 || org == 27)
{
if(org == 5 && !PlayerToPoint(3, playerid, 2811.7102,-1166.1824,1025.5703))
{
MSGPLAYER(playerid,COLOR_GREY," Vocк sу pode equipar no cofre org dos Aztecas!");
return 1;
}
if(org == 14 && !PlayerToPoint(3, playerid, 2514.1301,-1691.2979,14.0460))
{
MSGPLAYER(playerid,COLOR_GREY," Vocк sу pode equipar no cofre org dos Groove!");
return 1;
}
if(org == 17 && !PlayerToPoint(3, playerid, 1074.7671,-1204.1219,18.1446))
{
MSGPLAYER(playerid,COLOR_GREY," Vocк sу pode equipar no cofre org dos Ballas!");
return 1;
}
if(org == 18 && !PlayerToPoint(3, playerid, 2341.6677,-1186.3137,1027.9766))
{
MSGPLAYER(playerid,COLOR_GREY," Vocк sу pode equipar no cofre org dos Vagos!");
return 1;
}
if(org == 19 && !PlayerToPoint(3, playerid, 2151.3218,-1789.1669,13.5097))
{
MSGPLAYER(playerid,COLOR_GREY," Vocк sу pode equipar no cofre org do CV!");
return 1;
}
if(org == 20 && !PlayerToPoint(3, playerid, 1327.2062,-877.5867,39.5781))
{
MSGPLAYER(playerid,COLOR_GREY," Vocк sу pode equipar no cofre org do P.C.C!");
return 1;
}
if(org == 21 && !PlayerToPoint(3, playerid, 961.7298,-1544.0291,13.5960))
{
MSGPLAYER(playerid,COLOR_GREY," Vocк sу pode equipar no cofre org dos O.S.Loko!");
return 1;
}
if(org == 23 && !PlayerToPoint(3, playerid, 1025.0548,-2020.7316,45.1003))
{
MSGPLAYER(playerid,COLOR_GREY," Vocк sу pode equipar no cofre org dos Drifters!");
return 1;
}
if(org == 22 && !PlayerToPoint(3, playerid, 1028.4290,-1102.8259,23.8281))
{
MSGPLAYER(playerid,COLOR_GREY," Vocк sу pode equipar no cofre org dos Sons Of Anarchy!");
return 1;
}
if(org == 24 && !PlayerToPoint(3, playerid, 2788.9832,-1628.0317,10.9272))
{
MSGPLAYER(playerid,COLOR_GREY," Vocк sу pode equipar no cofre org dos T.C.Puro!");
return 1;
}
if(org == 25 && !PlayerToPoint(3, playerid, 2469.8074,-1943.4243,16.8859))
{
MSGPLAYER(playerid,COLOR_GREY," Vocк sу pode equipar no cofre org dos A.D.A!");
return 1;
}
if(org == 27 && !PlayerToPoint(3, playerid, 152.9094,1371.9668,1083.8594))
{
MSGPLAYER(playerid,COLOR_GREY," Vocк sу pode equipar no cofre org dos G-Unit!");
return 1;
}
if(PlayerInfo[playerid][pLider] >= 1)
{
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 24, 500);
GivePlayerWeapon(playerid, 30, 900);
GivePlayerWeapon(playerid, 29, 900);
GivePlayerWeapon(playerid, 25, 500);
GivePlayerWeapon(playerid, 5, 1);
GivePlayerWeapon(playerid, 1, 1);
SetPlayerArmour(playerid, 100);
SetPlayerHealth(playerid, 100);
GetPlayerName(playerid,sendername,sizeof(sendernam e));
format(string, sizeof(string), " O Lider %s pega seus equipamentos.", sendername, playerid);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
return 1;
}
else if(PlayerInfo[playerid][pCargo] <= 1)
{
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 24, 500);
GivePlayerWeapon(playerid, 30, 900);
GivePlayerWeapon(playerid, 29, 900);
GivePlayerWeapon(playerid, 25, 500);
GivePlayerWeapon(playerid, 5, 1);
GivePlayerWeapon(playerid, 1, 1);
SetPlayerArmour(playerid, 100);
SetPlayerHealth(playerid, 100);
GetPlayerName(playerid,sendername,sizeof(sendernam e));
format(string, sizeof(string), " O Membro %s pega seus equipamentos.", sendername, playerid);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
return 1;
}
else if(PlayerInfo[playerid][pCargo] == 2)
{
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 24, 500);
GivePlayerWeapon(playerid, 30, 900);
GivePlayerWeapon(playerid, 29, 900);
GivePlayerWeapon(playerid, 25, 500);
GivePlayerWeapon(playerid, 5, 1);
GivePlayerWeapon(playerid, 1, 1);
SetPlayerArmour(playerid, 100);
SetPlayerHealth(playerid, 100);
GetPlayerName(playerid,sendername,sizeof(sendernam e));
format(string, sizeof(string), " O Membro %s pega seus equipamentos.", sendername, playerid);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
return 1;
}
else if(PlayerInfo[playerid][pCargo] == 3)
{
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 24, 500);
GivePlayerWeapon(playerid, 30, 900);
GivePlayerWeapon(playerid, 29, 900);
GivePlayerWeapon(playerid, 25, 500);
GivePlayerWeapon(playerid, 5, 1);
GivePlayerWeapon(playerid, 1, 1);
SetPlayerArmour(playerid, 100);
SetPlayerHealth(playerid, 100);
GetPlayerName(playerid,sendername,sizeof(sendernam e));
format(string, sizeof(string), " O Membro %s pega seus equipamentos.", sendername, playerid);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
return 1;
}
else if(PlayerInfo[playerid][pCargo] == 4)
{
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 24, 500);
GivePlayerWeapon(playerid, 30, 900);
GivePlayerWeapon(playerid, 29, 900);
GivePlayerWeapon(playerid, 25, 500);
GivePlayerWeapon(playerid, 5, 1);
GivePlayerWeapon(playerid, 1, 1);
SetPlayerArmour(playerid, 100);
SetPlayerHealth(playerid, 100);
GetPlayerName(playerid,sendername,sizeof(sendernam e));
format(string, sizeof(string), " O Membro %s pega seus equipamentos.", sendername, playerid);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
return 1;
}
else if(PlayerInfo[playerid][pCargo] == 5)
{
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 24, 500);
GivePlayerWeapon(playerid, 30, 900);
GivePlayerWeapon(playerid, 29, 900);
GivePlayerWeapon(playerid, 25, 500);
GivePlayerWeapon(playerid, 5, 1);
GivePlayerWeapon(playerid, 1, 1);
SetPlayerArmour(playerid, 100);
SetPlayerHealth(playerid, 100);
GetPlayerName(playerid,sendername,sizeof(sendernam e));
format(string, sizeof(string), " O Membro %s pega seus equipamentos.", sendername, playerid);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
return 1;
}
}
return 1;
}

Reply
#4

Nesse comando nгo tem o sistema de matйriais! u.U
Reply
#5

variavelmateriais -= 200;
Reply
#6

Creio que teu gm eo bmg adapta os cdg ae no teu comando.

pawn Код:
if(CofreOrg[org][Materiais] < 200)
            {
                SendClientMessage(playerid,COLOQUE_SUA_COR_AQUI,"E Preciso ter 200 de Materiais No Cofre Para equipar!");
                return 1;
            }

PlayerInfo[playerid][pMats] -= 200;
da proxima vez que for postar cdg use [pawn].
Reply
#7

Onde que eu coloco isso? E o GM й Brasil Street Games.
Reply
#8

Quote:
Originally Posted by Leo_Lost
Посмотреть сообщение
Creio que teu gm eo bmg adapta os cdg ae no teu comando.

pawn Код:
if(CofreOrg[org][Materiais] < 200)
            {
                SendClientMessage(playerid,COLOQUE_SUA_COR_AQUI,"E Preciso ter 200 de Materiais No Cofre Para equipar!");
                return 1;
            }

PlayerInfo[playerid][pMats] -= 200;
da proxima vez que for postar cdg use [pawn].
?
Reply
#9

Eu coloco em que lugar? Quando a pessoa vai dar /equiparg ?
Reply
#10

Quote:
Originally Posted by ViictorDaay-
Посмотреть сообщение
?
Leia o pedido dele mano, ele pediu para que o player so equipasse com 200 de materiais no cofre e que fosse cobrado 200 materiais quando ele equipar, agora e so ele montar no comando eo gm dele eo bmg editado.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)