Pickup when kill a medic?
#5

Quote:
Originally Posted by Logitech90
Посмотреть сообщение
Yeah i know that but,i need to drop the pickup ONLY when u kill a MEDIC.
You can use something like killerid or getteam, i dont know it takes me a hour to script it and now i dont have time, sorry but you understand me right? You can add something like
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    new Float:Health;
    GetPlayerHealth(victimid, Health);
    new Float:x,Float:y,Float:z;
    GetPlayerPos(victimid, x, y, z);
    if(Health == 0.0)
    {
         if(gClass[playerid] = you medic class)
          {
          medpickup = createpickup(blahblahblah)
          }
      }
      return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
    if (pickupid == medpickup)
    {
    Setplayerhealth(blahblahblah)
    return 1;
    }
}
i dont know if it works, but if not you can figure it out, i made all the whole code to you xD
Reply


Messages In This Thread
Pickup when kill a medic? - by Face9000 - 19.12.2010, 15:05
Re: Pickup when kill a medic? - by matute - 19.12.2010, 15:58
Re: Pickup when kill a medic? - by Face9000 - 19.12.2010, 16:07
Re: Pickup when kill a medic? - by Rachael - 19.12.2010, 16:16
Re: Pickup when kill a medic? - by matute - 19.12.2010, 16:17
Re: Pickup when kill a medic? - by Face9000 - 19.12.2010, 17:03
Re: Pickup when kill a medic? - by matute - 19.12.2010, 17:11
Re: Pickup when kill a medic? - by Face9000 - 19.12.2010, 17:18

Forum Jump:


Users browsing this thread: 1 Guest(s)