[Include] SetPlayerObjectiveMarker - 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: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (
https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] SetPlayerObjectiveMarker (
/showthread.php?tid=620779)
SetPlayerObjectiveMarker - Jelly23 - 03.11.2016
SetPlayerObjectiveMarker
So, after looking into few pictures of ''10 years of Samp'', i found this:
sa-mp.com/stuff/samphistory/sml_samp4.jpg. As i know those objective markers on people's heads were removed, so i thought ''Why not try to bring them back?" and i kinda... did.
Preview:
You can use any color you wish.
Functions:
PHP код:
SetPlayerObjectiveMarker(playerid,color,time=0)
/*
Example:
SetPlayerObjectiveMarker(playerid,0xAA3333AA,1000); //The marker will dissapear in one second. Leave it as 0 if you want it to be permanent.
*/
PHP код:
DestroyObjectiveMarker(playerid)
/*
Example:
DestroyObjectiveMarker(playerid); //Will destroy/remove somebody's marker.
*/
PHP код:
IsValidObjectiveMarker(playerid)
/*
Example:
if(IsValidObjectiveMarker(playerid)) //Will return 0 if the player has no marker, otherwise 1.
*/
Download:
Pastebin
Re: SetPlayerObjectiveMarker -
oMa37 - 03.11.2016
It's more like a snippet.
Re: SetPlayerObjectiveMarker - Jelly23 - 03.11.2016
Quote:
Originally Posted by oMa37
It's more like a snippet.
|
It's not completely done, going to add few more stuff.
EDIT: Updated.
Re: SetPlayerObjectiveMarker -
markparker12 - 03.11.2016
Looks good.
Re: SetPlayerObjectiveMarker -
MikeB - 03.11.2016
Nice, going to try it.
Re: SetPlayerObjectiveMarker -
Pottus - 03.11.2016
In my view it's a very poor choice to use SetPlayerAttachedObject() in an include.
Re: SetPlayerObjectiveMarker - Jelly23 - 03.11.2016
Quote:
Originally Posted by Pottus
In my view it's a very poor choice to use SetPlayerAttachedObject() in an include.
|
Well... thanks in any form.
Re: SetPlayerObjectiveMarker -
CXdur - 03.11.2016
Quote:
Originally Posted by Pottus
In my view it's a very poor choice to use SetPlayerAttachedObject() in an include.
|
Could you please be a bit more elaborate? Perhaps explain why? I personally don't see how this can cause any issues and I am pretty certain I've seen includes use them before. I do believe you though, by the looks of it you are far more experienced than me but stating a reason would definitely be helpful.
Anyway, kind of small and simple but still a good job. Haven't seen these markers in a long time.
Re: SetPlayerObjectiveMarker -
kathykit - 03.11.2016
Quote:
Originally Posted by Jelly23
SetPlayerObjectiveMarker
So, after looking into few pictures of ''10 years of Samp'', i found this: sa-mp.com/stuff/samphistory/sml_samp4.jpg. As i know those objective markers on people's heads were removed, so i thought ''Why not try to bring them back?" and i kinda... did.
Preview:
You can use any color you wish.
Functions:
PHP код:
SetPlayerObjectiveMarker(playerid,color,time=0)
/*
Example:
SetPlayerObjectiveMarker(playerid,0xAA3333AA,1000); //The marker will dissapear in one second. Leave it as 0 if you want it to be permanent.
*/
PHP код:
DestroyObjectiveMarker(playerid)
/*
Example:
DestroyObjectiveMarker(playerid); //Will destroy/remove somebody's marker.
*/
PHP код:
IsValidObjectiveMarker(playerid)
/*
Example:
if(IsValidObjectiveMarker(playerid)) //Will return 0 if the player has no marker, otherwise 1.
*/
X stand
Download:
Pastebin
Solidfiles
|
Look great!X stand
I am going to try this.