[Ajuda] Sem arma com godmod
#10

Quote:
Originally Posted by GuilhermeH
Посмотреть сообщение
Nгo coloca na public OnPlayerDeath que a onde esta a funзгo de dropar as armas.
Entгo cara, na public OnPlayerDeath, estб isso:
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    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);
    }
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)