about AttachObjectToPlayer help! - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: about AttachObjectToPlayer help! (
/showthread.php?tid=93146)
about AttachObjectToPlayer help! -
Sfinx_17 - 23.08.2009
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?

?
Re: about AttachObjectToPlayer help! -
ronyx69 - 23.08.2009
You should put it where you want it.
OnPlayerSpawn for example.
Re: about AttachObjectToPlayer help! -
Sfinx_17 - 23.08.2009
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
Re: about AttachObjectToPlayer help! -
ronyx69 - 23.08.2009
That is depending on the code you have.
For example:
Код:
OnPlayerUpdate(playerid)
{
if(yourplayerbounty>1000)
{
AttachObjec.....
}
return 1;
}
Re: about AttachObjectToPlayer help! -
saiberfun - 23.08.2009
Quote:
Originally Posted by Ronyx69
|
Re: about AttachObjectToPlayer help! -
ronyx69 - 23.08.2009
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.
Re: about AttachObjectToPlayer help! -
Sfinx_17 - 23.08.2009
ok can anybody give me the full code for ..when is big bounty to appear the arrow above a player?
please
Re: about AttachObjectToPlayer help! -
snoob - 23.08.2009
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
Re: about AttachObjectToPlayer help! -
Sfinx_17 - 23.08.2009
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