[AJUDA] Bug Com Pickup
#1

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 ;/
Reply
#2

Vocк tб misturando CreateDynamicPickup com CreatePickup
Reply
#3

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


Forum Jump:


Users browsing this thread: 1 Guest(s)