SA-MP Forums Archive
[AJUDA] Bug Com Pickup - 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] Bug Com Pickup (/showthread.php?tid=341240)



[AJUDA] Bug Com Pickup - ReDKiiL - 10.05.2012

Hello Friend :P kkk Eae Emos

To Com Um Problema Aqui... Tipo Meu Sistema De Pickup Ta Meio "Bugado"
Quando Passo Acima Da Pickup De Vida Acontece As Funзoes Da Pickup De Armas e Colete
Codigo..
pawn Код:
pickup[0] = CreateDynamicPickup(359,8,288.1513,-58.8442,1001.5156,-1);
    pickup[1] = CreateDynamicPickup(359,8,284.9370,-104.6143,1001.5156,-1);
    pickup[2] = CreateDynamicPickup(359,8,313.0161,-162.6102,999.5938,-1);
    life1 = CreatePickup(1240 , 1, 2833.3582,1318.6400,10.7772);
    life2 = CreatePickup(1240 , 1, 2224.9268,2538.6997,10.8203);
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == pickup[0])
    {
    ResetPlayerWeapons(playerid);
    GivePlayerWeapon(playerid,22,150);
    GivePlayerWeapon(playerid,26,600);
    GivePlayerWeapon(playerid,28,1500);
    GivePlayerWeapon(playerid,31,1800);
    GivePlayerWeapon(playerid,34,100);
    GivePlayerWeapon(playerid,16,20);
    SetPlayerArmour(playerid,100);
    return  SendClientMessage(playerid,verde,"INFO: Vocк pegou um kit para x1");
    }
    else if(pickupid ==  pickup[1])
    {
    ResetPlayerWeapons(playerid);
    GivePlayerWeapon(playerid,22,150);
    GivePlayerWeapon(playerid,26,600);
    GivePlayerWeapon(playerid,28,1500);
    GivePlayerWeapon(playerid,31,1800);
    GivePlayerWeapon(playerid,34,100);
    GivePlayerWeapon(playerid,16,20);
    SetPlayerArmour(playerid,100);
    return SendClientMessage(playerid,verde,"INFO: Vocк pegou um kit para x1");
    }
    else if(pickupid ==  pickup[2])
    {
    ResetPlayerWeapons(playerid);
    GivePlayerWeapon(playerid,22,150);
    GivePlayerWeapon(playerid,26,600);
    GivePlayerWeapon(playerid,28,1500);
    GivePlayerWeapon(playerid,31,1800);
    GivePlayerWeapon(playerid,34,100);
    GivePlayerWeapon(playerid,16,20);
    SetPlayerArmour(playerid,100);
    return SendClientMessage(playerid,verde,"INFO: Vocк pegou um kit para x1");
    }
    else if(pickupid == life1)
    {
    return SetPlayerHealth(playerid,100.0);
    }
    else if(pickupid == life2)
    {
    return SetPlayerHealth(playerid,100.0);
    }

    return 1;
}
Alguem Sabe Como Resolver Isso Ja Tentei De Tudo ;/



Re: [AJUDA] Bug Com Pickup - ViniBorn - 10.05.2012

Vocк tб misturando CreateDynamicPickup com CreatePickup


Re: [AJUDA] Bug Com Pickup - ReDKiiL - 10.05.2012

Nйййee Orrrr To Meio DOido SO Pode Vlw ai Born KKKK Namoral Ignora Eu PQP