20.04.2014, 00:03
Eu coloquei o sistema de cofre no gm e quando vai equipar ele nao funciona ele diz\/
EU TIREI ATЙ UM NOVO LOCAL NO /SAVE PRA POR LA MAIS MESMO ASSIM NAO FUNIONA ME AJUDA AI SE PUDEREN
CRIAR OUTRO EQUIPAR OU ARRUMAR ESTI MESMO
CAUSA MUITO TEMPO SEM MECHER EM PAWN
PHP код:
Vocк sу pode equipar no cofre org de sua HQ
CRIAR OUTRO EQUIPAR OU ARRUMAR ESTI MESMO
CAUSA MUITO TEMPO SEM MECHER EM PAWN
PHP код:
if(strcmp(cmd, "/equiparg", true) == 0)
{
new org = GetPlayerOrg(playerid);
if(org == 5 || org == 6 || org == 10 || org == 11 || org == 12 || org == 13 || org == 15 || org == 16 || org == 17 || org == 18 || org == 19 || org == 20 )
if(IsAGang(playerid))
{
if(CofreOrg[org][Materiais] < 20)
{
SendClientMessage(playerid,COLOR_GREY," O cofre de sua HQ tem menos de 20 materiais, compre mais com a mбfia ou deposite!");
return 1;
}
//if(PlayerInfo[playerid][pMember] == 5 && PlayerToPoint(8.0,playerid,308.1387,1120.6375,1083.8828))
if(PlayerInfo[playerid][pMember] == 5 && org == 5 && PlayerToPoint(8.0,playerid,323.1665,1117.5167,1083.8828))
{
SendClientMessage(playerid,COLOR_GREY," Vocк sу pode equipar no cofre org de sua HQ!");
return 1;
}
if(PlayerInfo[playerid][pMember] == 6 && org == 6 && PlayerToPoint(8.0,playerid,2497.8489,-1703.2598,1014.7422))
{
SendClientMessage(playerid,COLOR_GREY," Vocк sу pode equipar no cofre org de sua HQ!");
return 1;
}
if(PlayerInfo[playerid][pMember] == 10 && org == 10 && PlayerToPoint(8.0,playerid,1141.5215,-10.6199,1000.6719))
{
SendClientMessage(playerid,COLOR_GREY," Vocк sу pode equipar no cofre org de sua HQ!");
return 1;
}
if(PlayerInfo[playerid][pMember] == 11 && org == 11 && PlayerToPoint(8.0,playerid,451.3770,-83.9226,999.5547))//
{
SendClientMessage(playerid,COLOR_GREY," Vocк sу pode equipar no cofre org de sua HQ!");
return 1;
}
if(PlayerInfo[playerid][pMember] == 12 && org == 12 && PlayerToPoint(8.0,playerid,2173.2478,-2256.5645,13.3048))
{
SendClientMessage(playerid,COLOR_GREY," Vocк sу pode equipar no cofre org de sua HQ!");
return 1;
}
if(PlayerInfo[playerid][pMember] == 13 && org == 13 && PlayerToPoint(8.0,playerid,2345.5767,-1184.8669,1027.9766))
{
SendClientMessage(playerid,COLOR_GREY," Vocк sу pode equipar no cofre org de sua HQ!");
return 1;
}
if(PlayerInfo[playerid][pMember] == 15 && org == 15 && PlayerToPoint(8.0,playerid,508.4756,-80.5316,998.9609))
{
SendClientMessage(playerid,COLOR_GREY," Vocк sу pode equipar no cofre org de sua HQ!");
return 1;
}
if(PlayerInfo[playerid][pMember] == 16 && org == 16 && PlayerToPoint(8.0,playerid,2811.7351,-1171.3318,1025.5703))
{
SendClientMessage(playerid,COLOR_GREY," Vocк sу pode equipar no cofre org de sua HQ!");
return 1;
}
if(PlayerInfo[playerid][pMember] == 17 && org == 17 && PlayerToPoint(8.0,playerid,1266.1218,-780.0120,1084.0078))
{
SendClientMessage(playerid,COLOR_GREY," Vocк sу pode equipar no cofre org de sua HQ!");
return 1;
}
if(PlayerInfo[playerid][pMember] == 18 && org == 18 && PlayerToPoint(8.0,playerid,-225.7658,1400.3685,27.7656))
{
SendClientMessage(playerid,COLOR_GREY," Vocк sу pode equipar no cofre org de sua HQ!");
return 1;
}
if(PlayerInfo[playerid][pMember] == 19 && org == 19 && PlayerToPoint(8.0,playerid,414.4804,2536.6851,10.0000))
{
SendClientMessage(playerid,COLOR_GREY," Vocк sу pode equipar no cofre org de sua HQ!");
return 1;
}
if(PlayerInfo[playerid][pMember] == 20 && org == 20 && PlayerToPoint(8.0,playerid,2551.3342,-1290.7883,1060.9844))
{
SendClientMessage(playerid,COLOR_GREY," Vocк sу pode equipar no cofre org de sua HQ!");
return 1;
}
new dorgas = CofreOrg[org][Materiais];
if(PlayerInfo[playerid][pLider] >= 1)
{
CofreOrg[org][Materiais] = dorgas-20;
SetPlayerArmour(playerid, 100.0);
SetPlayerHealth(playerid, 100.0);
GivePlayerWeapon(playerid, 4, 2);
GivePlayerWeapon(playerid, 24, 500);
GivePlayerWeapon(playerid, 29, 300);
GivePlayerWeapon(playerid, 27, 500);
GivePlayerWeapon(playerid, 30, 500);
format(string, sizeof(string), "* Gangster %s pega seus equipamentos de lнder.", PlayerName(playerid));
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
return true;
}
else if(PlayerInfo[playerid][pCargo] <= 1)
{
CofreOrg[org][Materiais] = dorgas-20;
SetPlayerArmour(playerid, 40.0);
SetPlayerHealth(playerid, 100.0);
GivePlayerWeapon(playerid, 5, 2);
GivePlayerWeapon(playerid, 24, 500);
format(string, sizeof(string), "* Gangster %s pega seus equipamentos.", PlayerName(playerid));
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
return true;
}
else if(PlayerInfo[playerid][pCargo] == 2)
{
CofreOrg[org][Materiais] = dorgas-20;
SetPlayerArmour(playerid, 50.0);
SetPlayerHealth(playerid, 100.0);
GivePlayerWeapon(playerid, 4, 2);
GivePlayerWeapon(playerid, 24, 500);
GivePlayerWeapon(playerid, 25, 500);
format(string, sizeof(string), "* Gangster %s pega seus equipamentos.", PlayerName(playerid));
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
return true;
}
else if(PlayerInfo[playerid][pCargo] == 3)
{
CofreOrg[org][Materiais] = dorgas-20;
SetPlayerArmour(playerid, 60.0);
SetPlayerHealth(playerid, 100.0);
GivePlayerWeapon(playerid, 4, 2);
GivePlayerWeapon(playerid, 24, 500);
GivePlayerWeapon(playerid, 29, 500);
format(string, sizeof(string), "* Gangster %s pega seus equipamentos.", PlayerName(playerid));
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
return true;
}
else if(PlayerInfo[playerid][pCargo] == 4)
{
CofreOrg[org][Materiais] = dorgas-20;
SetPlayerArmour(playerid, 80.0);
SetPlayerHealth(playerid, 100.0);
GivePlayerWeapon(playerid, 4, 230);
GivePlayerWeapon(playerid, 24, 500);
GivePlayerWeapon(playerid, 29, 500);
GivePlayerWeapon(playerid, 25, 500);
format(string, sizeof(string), "* Gangster %s pega seus equipamentos.", PlayerName(playerid));
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
return true;
}
else if(PlayerInfo[playerid][pCargo] == 5)
{
CofreOrg[org][Materiais] = dorgas-20;
SetPlayerArmour(playerid, 90.0);
SetPlayerHealth(playerid, 100.0);
GivePlayerWeapon(playerid, 4, 2);
GivePlayerWeapon(playerid, 24, 500);
GivePlayerWeapon(playerid, 29, 300);
GivePlayerWeapon(playerid, 25, 500);
GivePlayerWeapon(playerid, 30, 500);
format(string, sizeof(string), "* Gangster %s pega seus equipamentos.", PlayerName(playerid));
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
return true;
}
}
return true;
}