bom galera e o seguinte ja tentei de varias formas e ate copiei uma que ja funcionava mas mesmo assim nao funciona
eu adicionei uma nova org no meu servidor ai colokei org vip e tal mas so funciona a org vip quando o player digita o comando /orgvip... i o so nessa org que acontece isso queria que arrumasse pra quando o player apertasse F tbm equipava
PHP код:
if(strcmp(cmd, "/orgvippirata", true) == 0)
{
new tmpcar = GetPlayerVehicleID(playerid);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
if(IsAMercezinhoCar(tmpcar)||PlayerToPoint(3, playerid,2167.45,-112.92,8.94))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
if(PlayerInfo[playerid][pMembro] == 27 || PlayerInfo[playerid][pLider] == 27)//Piratas do Caribe
{
if(OnMafiaEquipado[playerid] == 1)
{
ResetPlayerWeaponsEx(playerid);
OnMafiaEquipado[playerid] = 0;
return 1;
}
if (PlayerInfo[playerid][pLider] == 27 || PlayerInfo[playerid][pMembro] == 27) // Piratas do Caribe
{
if (PlayerInfo[playerid][pCargo] == 1)
{
format(string, sizeof(string), "Piratas do Caribe: %s Pegou um Kit ORGVIP.", sendername);
ProxDetector(30.0, playerid, string, COLOR_AZUL,COLOR_AZUL,COLOR_AZUL,COLOR_AZUL,COLOR_AZUL);
ResetPlayerWeaponsEx(playerid);
GivePlayerWeapon(playerid, 1, 1);
GivePlayerWeapon(playerid, 16, 4);
GivePlayerWeapon(playerid, 34, 10);
GivePlayerWeapon(playerid, 31, 350);
GivePlayerWeapon(playerid, 29, 370);
GivePlayerWeapon(playerid, 26, 120);
GivePlayerWeapon(playerid, 24, 150);
GivePlayerWeapon(playerid, 16, 10);
GivePlayerWeapon(playerid, 35, 5);
GivePlayerWeapon(playerid, 15, 1);
SetPlayerArmour(playerid, 100);
SetPlayerHealth(playerid, 100);
OnMafiaEquipado[playerid] = 1;
return 1;
}
if (PlayerInfo[playerid][pCargo] == 2)
{
format(string, sizeof(string), "Piratas do Caribe: %s Pegou um Kit ORGVIP.", sendername);
ProxDetector(30.0, playerid, string, COLOR_AZUL,COLOR_AZUL,COLOR_AZUL,COLOR_AZUL,COLOR_AZUL);
ResetPlayerWeaponsEx(playerid);
GivePlayerWeapon(playerid, 1, 1);
GivePlayerWeapon(playerid, 16, 4);
GivePlayerWeapon(playerid, 34, 10);
GivePlayerWeapon(playerid, 31, 350);
GivePlayerWeapon(playerid, 29, 370);
GivePlayerWeapon(playerid, 26, 120);
GivePlayerWeapon(playerid, 24, 150);
GivePlayerWeapon(playerid, 16, 10);
GivePlayerWeapon(playerid, 35, 5);
GivePlayerWeapon(playerid, 15, 1);
SetPlayerArmour(playerid, 100);
SetPlayerHealth(playerid, 100);
OnMafiaEquipado[playerid] = 1;
return 1;
}
if (PlayerInfo[playerid][pCargo] == 3)
{
format(string, sizeof(string), "Piratas do Caribe: %s Pegou um Kit ORGVIP.", sendername);
ProxDetector(30.0, playerid, string, COLOR_AZUL,COLOR_AZUL,COLOR_AZUL,COLOR_AZUL,COLOR_AZUL);
ResetPlayerWeaponsEx(playerid);
GivePlayerWeapon(playerid, 1, 1);
GivePlayerWeapon(playerid, 16, 4);
GivePlayerWeapon(playerid, 34, 10);
GivePlayerWeapon(playerid, 31, 400);
GivePlayerWeapon(playerid, 29, 450);
GivePlayerWeapon(playerid, 26, 120);
GivePlayerWeapon(playerid, 24, 150);
GivePlayerWeapon(playerid, 16, 10);
GivePlayerWeapon(playerid, 35, 5);
GivePlayerWeapon(playerid, 15, 1);
SetPlayerArmour(playerid, 100);
SetPlayerHealth(playerid, 100);
OnMafiaEquipado[playerid] = 1;
return 1;
}
if (PlayerInfo[playerid][pCargo] == 4)
{
format(string, sizeof(string), "Piratas do Caribe: %s Pegou um Kit ORGVIP.", sendername);
ProxDetector(30.0, playerid, string, COLOR_AZUL,COLOR_AZUL,COLOR_AZUL,COLOR_AZUL,COLOR_AZUL);
ResetPlayerWeaponsEx(playerid);
GivePlayerWeapon(playerid, 1, 1);
GivePlayerWeapon(playerid, 16, 4);
GivePlayerWeapon(playerid, 34, 10);
GivePlayerWeapon(playerid, 31, 400);
GivePlayerWeapon(playerid, 29, 450);
GivePlayerWeapon(playerid, 26, 120);
GivePlayerWeapon(playerid, 24, 150);
GivePlayerWeapon(playerid, 16, 10);
GivePlayerWeapon(playerid, 35, 5);
GivePlayerWeapon(playerid, 15, 1);
SetPlayerArmour(playerid, 100);
SetPlayerHealth(playerid, 100);
OnMafiaEquipado[playerid] = 1;
return 1;
}
if (PlayerInfo[playerid][pCargo] == 5)
{
format(string, sizeof(string), "Piratas do Caribe: %s Pegou um Kit ORGVIP.", sendername);
ProxDetector(30.0, playerid, string, COLOR_AZUL,COLOR_AZUL,COLOR_AZUL,COLOR_AZUL,COLOR_AZUL);
ResetPlayerWeaponsEx(playerid);
GivePlayerWeapon(playerid, 1, 1);
GivePlayerWeapon(playerid, 16, 4);
GivePlayerWeapon(playerid, 34, 10);
GivePlayerWeapon(playerid, 31, 400);
GivePlayerWeapon(playerid, 29, 450);
GivePlayerWeapon(playerid, 26, 120);
GivePlayerWeapon(playerid, 24, 150);
GivePlayerWeapon(playerid, 16, 10);
GivePlayerWeapon(playerid, 35, 5);
GivePlayerWeapon(playerid, 15, 1);
SetPlayerArmour(playerid, 100);
SetPlayerHealth(playerid, 100);
OnMafiaEquipado[playerid] = 1;
return 1;
}
if (PlayerInfo[playerid][pCargo] == 6)
{
format(string, sizeof(string), "Piratas do Caribe: %s Pegou um Kit ORGVIP.", sendername);
ProxDetector(30.0, playerid, string, COLOR_AZUL,COLOR_AZUL,COLOR_AZUL,COLOR_AZUL,COLOR_AZUL);
ResetPlayerWeaponsEx(playerid);
GivePlayerWeapon(playerid, 1, 1);
GivePlayerWeapon(playerid, 16, 5);
GivePlayerWeapon(playerid, 34, 20);
GivePlayerWeapon(playerid, 31, 450);
GivePlayerWeapon(playerid, 29, 470);
GivePlayerWeapon(playerid, 26, 150);
GivePlayerWeapon(playerid, 24, 200);
GivePlayerWeapon(playerid, 16, 10);
GivePlayerWeapon(playerid, 35, 5);
GivePlayerWeapon(playerid, 15, 1);
SetPlayerArmour(playerid, 100);
SetPlayerHealth(playerid, 100);
OnMafiaEquipado[playerid] = 1;
return 1;
}
}
}
if(PlayerInfo[playerid][pMembro] != 27 && PlayerInfo[playerid][pLider] != 27)
{
SendClientMessage(playerid, COR_INTERPOL, "Vocк nгo й da Piratas do Caribe.");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_LIGHTRED, "Vocк nгo estб na HQ!");
}
}