SA-MP Forums Archive
[Ajuda] Orgvip - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Orgvip (/showthread.php?tid=525247)



Orgvip - 12utra - 10.07.2014

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

comandos
PHP код:
if(strcmp(cmd"/orgvippirata"true) == 0)
    {
        new 
tmpcar GetPlayerVehicleID(playerid);
        
tmp strtok(cmdtextidx);
        if(!
strlen(tmp))
        if(
IsAMercezinhoCar(tmpcar)||PlayerToPoint(3playerid,2167.45,-112.92,8.94))
        {
            
GetPlayerName(playeridsendernamesizeof(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(stringsizeof(string), "Piratas do Caribe: %s Pegou um Kit ORGVIP."sendername);
                        
ProxDetector(30.0playeridstringCOLOR_AZUL,COLOR_AZUL,COLOR_AZUL,COLOR_AZUL,COLOR_AZUL);
                        
ResetPlayerWeaponsEx(playerid);
                        
GivePlayerWeapon(playerid11);
                        
GivePlayerWeapon(playerid164);
                        
GivePlayerWeapon(playerid3410);
                        
GivePlayerWeapon(playerid31350);
                        
GivePlayerWeapon(playerid29370);
                        
GivePlayerWeapon(playerid26120);
                        
GivePlayerWeapon(playerid24150);
                        
GivePlayerWeapon(playerid1610);
                        
GivePlayerWeapon(playerid355);
                        
GivePlayerWeapon(playerid151);
                        
SetPlayerArmour(playerid100);
                        
SetPlayerHealth(playerid100);
                        
OnMafiaEquipado[playerid] = 1;
                        return 
1;
                    }
                    if (
PlayerInfo[playerid][pCargo] == 2)
                    {
                           
format(stringsizeof(string), "Piratas do Caribe: %s Pegou um Kit ORGVIP."sendername);
                        
ProxDetector(30.0playeridstringCOLOR_AZUL,COLOR_AZUL,COLOR_AZUL,COLOR_AZUL,COLOR_AZUL);
                        
ResetPlayerWeaponsEx(playerid);
                        
GivePlayerWeapon(playerid11);
                        
GivePlayerWeapon(playerid164);
                        
GivePlayerWeapon(playerid3410);
                        
GivePlayerWeapon(playerid31350);
                        
GivePlayerWeapon(playerid29370);
                        
GivePlayerWeapon(playerid26120);
                        
GivePlayerWeapon(playerid24150);
                        
GivePlayerWeapon(playerid1610);
                        
GivePlayerWeapon(playerid355);
                        
GivePlayerWeapon(playerid151);
                        
SetPlayerArmour(playerid100);
                        
SetPlayerHealth(playerid100);
                        
OnMafiaEquipado[playerid] = 1;
                        return 
1;
                    }
                    if (
PlayerInfo[playerid][pCargo] == 3)
                    {
                        
format(stringsizeof(string), "Piratas do Caribe: %s Pegou um Kit ORGVIP."sendername);
                        
ProxDetector(30.0playeridstringCOLOR_AZUL,COLOR_AZUL,COLOR_AZUL,COLOR_AZUL,COLOR_AZUL);
                        
ResetPlayerWeaponsEx(playerid);
                        
GivePlayerWeapon(playerid11);
                        
GivePlayerWeapon(playerid164);
                        
GivePlayerWeapon(playerid3410);
                        
GivePlayerWeapon(playerid31400);
                        
GivePlayerWeapon(playerid29450);
                        
GivePlayerWeapon(playerid26120);
                        
GivePlayerWeapon(playerid24150);
                        
GivePlayerWeapon(playerid1610);
                        
GivePlayerWeapon(playerid355);
                        
GivePlayerWeapon(playerid151);
                        
SetPlayerArmour(playerid100);
                        
SetPlayerHealth(playerid100);
                        
OnMafiaEquipado[playerid] = 1;
                        return 
1;
                    }
                     if (
PlayerInfo[playerid][pCargo] == 4)
                    {
                        
format(stringsizeof(string), "Piratas do Caribe: %s Pegou um Kit ORGVIP."sendername);
                        
ProxDetector(30.0playeridstringCOLOR_AZUL,COLOR_AZUL,COLOR_AZUL,COLOR_AZUL,COLOR_AZUL);
                        
ResetPlayerWeaponsEx(playerid);
                        
GivePlayerWeapon(playerid11);
                        
GivePlayerWeapon(playerid164);
                        
GivePlayerWeapon(playerid3410);
                        
GivePlayerWeapon(playerid31400);
                        
GivePlayerWeapon(playerid29450);
                        
GivePlayerWeapon(playerid26120);
                        
GivePlayerWeapon(playerid24150);
                        
GivePlayerWeapon(playerid1610);
                        
GivePlayerWeapon(playerid355);
                        
GivePlayerWeapon(playerid151);
                        
SetPlayerArmour(playerid100);
                        
SetPlayerHealth(playerid100);
                        
OnMafiaEquipado[playerid] = 1;
                        return 
1;
                    }
                    if (
PlayerInfo[playerid][pCargo] == 5)
                    {
                        
format(stringsizeof(string), "Piratas do Caribe: %s Pegou um Kit ORGVIP."sendername);
                        
ProxDetector(30.0playeridstringCOLOR_AZUL,COLOR_AZUL,COLOR_AZUL,COLOR_AZUL,COLOR_AZUL);
                        
ResetPlayerWeaponsEx(playerid);
                        
GivePlayerWeapon(playerid11);
                        
GivePlayerWeapon(playerid164);
                        
GivePlayerWeapon(playerid3410);
                        
GivePlayerWeapon(playerid31400);
                        
GivePlayerWeapon(playerid29450);
                        
GivePlayerWeapon(playerid26120);
                        
GivePlayerWeapon(playerid24150);
                        
GivePlayerWeapon(playerid1610);
                        
GivePlayerWeapon(playerid355);
                        
GivePlayerWeapon(playerid151);
                        
SetPlayerArmour(playerid100);
                        
SetPlayerHealth(playerid100);
                        
OnMafiaEquipado[playerid] = 1;
                        return 
1;
                    }
                    if (
PlayerInfo[playerid][pCargo] == 6)
                    {
                        
format(stringsizeof(string), "Piratas do Caribe: %s Pegou um Kit ORGVIP."sendername);
                        
ProxDetector(30.0playeridstringCOLOR_AZUL,COLOR_AZUL,COLOR_AZUL,COLOR_AZUL,COLOR_AZUL);
                        
ResetPlayerWeaponsEx(playerid);
                        
GivePlayerWeapon(playerid11);
                        
GivePlayerWeapon(playerid165);
                        
GivePlayerWeapon(playerid3420);
                        
GivePlayerWeapon(playerid31450);
                        
GivePlayerWeapon(playerid29470);
                        
GivePlayerWeapon(playerid26150);
                        
GivePlayerWeapon(playerid24200);
                        
GivePlayerWeapon(playerid1610);
                        
GivePlayerWeapon(playerid355);
                        
GivePlayerWeapon(playerid151);
                        
SetPlayerArmour(playerid100);
                        
SetPlayerHealth(playerid100);
                        
OnMafiaEquipado[playerid] = 1;
                        return 
1;
                    }
                }
            }
            if(
PlayerInfo[playerid][pMembro] != 27 && PlayerInfo[playerid][pLider] != 27)
            {
                
SendClientMessage(playeridCOR_INTERPOL"Vocк nгo й da Piratas do Caribe.");
                return 
1;
            }
        }
        else
        {
            
SendClientMessage(playeridCOLOR_LIGHTRED"Vocк nгo estб na HQ!");
        }
    } 
se alguem conseguir me ajudar muito obrigado e +rep


Re: Orgvip - SkilL_Fly - 10.07.2014

Ajudei no Skype


Re: Orgvip - 12utra - 10.07.2014

vlw +rep


Re: Orgvip - ipsLuan - 11.07.2014

Incrнvel, +REP com 14 posts.