[AJUDA] Pickups
#2

pawn Код:
new globalpk;// OR destrua a v global.

ongamemodeinit
{
globalpk = CreatePickup(1239, 2, 1783.5922851563, -1162.8455810547, 23.828125, 0);//OR retire a v global.
}
onplayercommandtext

/kitvip
new Float:x, Float:y, Float:z;
getplayerpos(playerid,x,y,z);
if(PointToPoint(x,y,z, 1783.5922851563, -1162.8455810547, 23.828125) < 3)
{
//Quero isso quero aquilo se estiver em possicгo de tal.
}
else
{
//mensagem de erro.
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid==globalpk)// OR pickupid == 0
   {
    SendClientMessage(playerid, COLOR_GREY, "Eu quero ir em cima da pickup e digitar /kitvip pra pegar o kit nesse lugar...");
   }
    return 1;
}
stock Float:PointToPoint(Float:x, Float:y, Float:z, Float:xx, Float:yy, Float:zz)
{
    return floatsqroot( (x - xx) * (x - xx) + (y - yy) * (y - yy) + (z - zz) * (z - zz) );
}
Reply


Messages In This Thread
[AJUDA] Pickups - by [AF]Junior - 25.01.2011, 03:30
Re: [AJUDA] Pickups - by vinewood - 25.01.2011, 05:51
Re: [AJUDA] Pickups - by humildadeforever - 25.01.2011, 16:14

Forum Jump:


Users browsing this thread: 1 Guest(s)