[Ajuda] Sem arma com godmod
#8

Quote:
Originally Posted by GuilhermeH
Посмотреть сообщение
Qual й a funзгo que no seu public OnPlayerDeath que esta fazendo as armas droparem, procure e coloque assim

Dentro da public OnPlayerDeath:
Код:
if(PlayerInfo[playerid][pGodMode] == 0)
{
ResetPlayerWeapons(playerid);
//AQUI coloque a funзгo que dropa as armas do seu gamemode
}
else
{
ResetPlayerWeapons(playerid);
}
Acho que deve resolver, nгo testei
Acredito que seja esta:
pawn Код:
if(GetPlayerWeapon(playerid) > 0)
    {
        new Float:pPosX, Float:pPosY, Float:pPosZ;
        GetPlayerPos(playerid, pPosX, pPosY, pPosZ);
        new r;
        for(new i = 0; i != GetMaxPlayers()+100; i++)
        {
            if(DropGun[i][WeaponID] == 0)
            {
                r = i;
                break;
            }
        }
        DropGun[r][PickupID] = CreatePickup(GetWeaponModel(GetPlayerWeapon(playerid)), 19, pPosX, pPosY, pPosZ);
        DropGun[r][WeaponID] = GetPlayerWeapon(playerid);
        DropGun[r][Ammo] = minrand(100, 5000);
    }
Entгo deixo assim??
pawn Код:
if(GetPlayerWeapon(playerid) > 0)
    {
        new Float:pPosX, Float:pPosY, Float:pPosZ;
        GetPlayerPos(playerid, pPosX, pPosY, pPosZ);
        new r;
        for(new i = 0; i != GetMaxPlayers()+100; i++)
        {
        if(PlayerInfo[playerid][pGodMode] == 0)
        {
        ResetPlayerWeapons(playerid);
        if(DropGun[i][WeaponID] == 0)
        {
        r = i;
        break;
        }
        }
        else
        {
        ResetPlayerWeapons(playerid);
        }
        }
        DropGun[r][PickupID] = CreatePickup(GetWeaponModel(GetPlayerWeapon(playerid)), 19, pPosX, pPosY, pPosZ);
        DropGun[r][WeaponID] = GetPlayerWeapon(playerid);
        DropGun[r][Ammo] = minrand(100, 5000);
    }
@EDIT
Testei e nгo deu certo nгo...
Reply


Messages In This Thread
Sem arma com godmod - by GuiihCamargo - 15.01.2014, 01:41
Re: Sem arma com godmod - by zSuYaNw - 15.01.2014, 02:34
Re: Sem arma com godmod - by GuiihCamargo - 15.01.2014, 03:53
Re: Sem arma com godmod - by zSuYaNw - 15.01.2014, 04:11
Re: Sem arma com godmod - by GuiihCamargo - 15.01.2014, 05:43
Re: Sem arma com godmod - by GuiihCamargo - 16.01.2014, 11:30
Re: Sem arma com godmod - by GuilhermeH - 16.01.2014, 11:45
Re: Sem arma com godmod - by GuiihCamargo - 16.01.2014, 11:54
Re: Sem arma com godmod - by GuilhermeH - 16.01.2014, 11:58
Re: Sem arma com godmod - by GuiihCamargo - 16.01.2014, 11:58

Forum Jump:


Users browsing this thread: 1 Guest(s)