30.10.2010, 08:29
Okay, I'll make it easier for you and guide you through the function.
SetPlayerMarkerForPlayer ( playerid, showplayerid, color )
"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.
OR
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.
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.
"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)
pawn Код:
for( new i = 0; i < MAX_PLAYERS; i++)
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.