about AttachObjectToPlayer help!
#1

i saw a little of this tutorial from wiki ...about "AttachObjectToPlayer"

and i see this code


Quote:

AttachObjectToPlayer( objectid, playerid, 1.5, 0.5, 0, 0, 1.5, 2 );

but that code doesn't show where to put in the script ..so where i have to put the code??

and what is the id for that arrow above the playerto appear? ?

Reply
#2

You should put it where you want it.
OnPlayerSpawn for example.
Reply
#3

ok but i wanna make like this :
for example when somebody have a big bounty level...to appear the arrow ? is possible? if it's possible..what is the code then ? and where to put ??

i will apreciate for helping me please
Reply
#4

That is depending on the code you have.
For example:
Код:
OnPlayerUpdate(playerid)
  {
  if(yourplayerbounty>1000)
    {
    AttachObjec.....
    }
  return 1;
  }
Reply
#5

Quote:
Originally Posted by Ronyx69
That is depending on the code you have.
For example:
Код:
OnPlayerUpdate(playerid)
  {
  if(yourplayerbounty>1000)
    {
    AttachObjec.....
    }
  return 1;
  }
dont use OnPlayerUpdate man

http://forum.sa-mp.com/index.php?top...4161#msg714161
Reply
#6

There is nothing much - just checking if the bounty is larger than 1k.
And btw you need to put some variable so it wouldn't create object that object again and again.
Reply
#7

ok can anybody give me the full code for ..when is big bounty to appear the arrow above a player?
please
Reply
#8

Quote:
Originally Posted by Sfinx_17
ok can anybody give me the full code for ..when is big bounty to appear the arrow above a player?
please
can you post your bounty command
it would be easy direct in the /command to put the object if the bouty is equal or greater then 1000
Reply
#9

but i don't know codes to much i am new ..well i am a little noob at codes....i need a code for attach a arrow above a player when is heaving a big bounty

please help here
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)