i got a little question
#8

Okay, I'll make it easier for you and guide you through the function.

SetPlayerMarkerForPlayer ( playerid, showplayerid, color )
Код:
playerid	The player whose view you want to change
showplayerid	The player whose color will be changed
color	New color. Set the alpha part to 00 for an invisible blip. This works because 00 will set the transparency to nothing, which is invisible.
"playerid" in SPMFP means whose view to change. ( A player that will see the another player as a colour or invisible. )
"showplayerid" in SPMFP means whose colour would be changed. ( A player that will became invisible in simple words. )
"color" in SPMFP means the colour you want to change the player into.

Okay to make it show for everyone that showplayerid is invisible you make a loop.

pawn Код:
foreach(Player, i)
OR
pawn Код:
for( new i = 0; i < MAX_PLAYERS; i++)
i would be the loop's player id.

So you want everyone to see a player invisible you put 'i' in the first playerid slot. You put 'i' because it is the playerid the loop is providing you with.ShowPlayerMarkerForPlayer ( i, ....).


After making that you must put something in for the showplayerid slot. The person who made the command would be 'playerid' so we input 'playerid' into the showplayerid box to make him invisible. ShowPlayerMarkerForPlayer ( i, playerid, ....).

After that you must choose a colour. White + low opacity makes it go transparreent. O'yay. So we input '0xFFFFFFAA' into the last slot. ShowPlayerMarkerForPlayer ( i, playerid, 0xFFFFFFAA );.


I hope you actually learnt something. If you think I'm a huge dick head you can just choose to ignore my posts. I do understand my explanation is not good at all.
Reply


Messages In This Thread
i got a little question - by Andy_McKinley - 30.10.2010, 07:17
Re: i got a little question - by Retardedwolf - 30.10.2010, 07:59
Re: i got a little question - by Andy_McKinley - 30.10.2010, 08:01
Re: i got a little question - by Retardedwolf - 30.10.2010, 08:04
Re: i got a little question - by Andy_McKinley - 30.10.2010, 08:08
Re: i got a little question - by Retardedwolf - 30.10.2010, 08:17
Re: i got a little question - by Andy_McKinley - 30.10.2010, 08:17
Re: i got a little question - by Retardedwolf - 30.10.2010, 08:29
Re: i got a little question - by Andy_McKinley - 30.10.2010, 08:47
Re: i got a little question - by Retardedwolf - 30.10.2010, 09:09

Forum Jump:


Users browsing this thread: 2 Guest(s)