Marker problem - 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)
+--- Thread: Marker problem (
/showthread.php?tid=319131)
Marker problem -
Tanush123 - 18.02.2012
im trying to make a command where someone has to chase the red marker on the map, for some reason it doesnt makes a red marker on the map
pawn Код:
CMD:setmark(playerid,params[])
{
if(PlayerData[playerid][AdminLevel] < 4) return 0;
SendClientMessageToAll(red,"Most Wanted Event: Chase the red marker in your map!");
SCM(playerid,orange,"Do not use powers like /fly");
foreach(Player,i)
{
SetPlayerMarkerForPlayer(i,playerid,0xFF0000FF);
}
return 1;
}
Re: Marker problem -
DeathTone - 18.02.2012
SetPlayerMarkerForPlayer(i,playerid,0xFF0000FF);
is supposed to be
SetPlayerMarkerForPlayer(playerid,i,0xFF0000FF);
its (targetid, showid)
Respuesta: Marker problem -
LuisGraph - 18.02.2012
i - what valor?
Re: Marker problem -
Tanush123 - 18.02.2012
Quote:
Originally Posted by DeathTone
SetPlayerMarkerForPlayer(i,playerid,0xFF0000FF);
is supposed to be
SetPlayerMarkerForPlayer(playerid,i,0xFF0000FF);
its (targetid, showid)
|
Are you okay? that will set everyone's name color to red. I only want the playerid's name to be red and visible on map
Re: Marker problem -
ReneG - 18.02.2012
If you're trying to make an all out cluster-fuck of markers. Try
pawn Код:
SetPlayerMarkerForPlayer(i,i,0xFF0000FF);
if I'm correct, it would show everyone a marker for everyone.
Re: Marker problem -
Tanush123 - 18.02.2012
Quote:
Originally Posted by VincentDunn
If you're trying to make an all out cluster-fuck of markers. Try
pawn Код:
SetPlayerMarkerForPlayer(i,i,0xFF0000FF);
if I'm correct, it would show everyone a marker for everyone.
|
Im making a event for my rp server called most wanted. So if the playeird uses /setmark it will make his name red and also makes a red checkpoint for everyone in their map of the playerid position. Its like the red marker on rp servers if they are wanted
Re: Marker problem -
DeathTone - 18.02.2012
Quote:
Originally Posted by Tanush123
Are you okay? that will set everyone's name color to red. I only want the playerid's name to be red and visible on map
|
lol thats what its supposed to do,
SetPlayerMarkerForPlayer(i,playerid,0xFF0000FF);
will show the player who typed the command, a marker of himself, which is useless unless your trying to find yourself
So SetPlayerMarkerForPlayer(playerid,i,0xFF0000FF); will show the marker of the player who TYPED the command, to everyone else, including himself since your looping through everyone with foreach.
Re: Marker problem -
Tanush123 - 18.02.2012
Quote:
Originally Posted by DeathTone
lol thats what its supposed to do,
SetPlayerMarkerForPlayer(i,playerid,0xFF0000FF);
will show the player who typed the command, a marker of himself, which is useless unless your trying to find yourself
So SetPlayerMarkerForPlayer(playerid,i,0xFF0000FF); will show the marker of the player who TYPED the command, to everyone else, including himself since your looping through everyone with foreach.
|
my prediction was right, i tryed it and it made everyone red
Re: Marker problem -
Tanush123 - 18.02.2012
bump