Marker problem
#1

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;
}
Reply
#2

SetPlayerMarkerForPlayer(i,playerid,0xFF0000FF);

is supposed to be

SetPlayerMarkerForPlayer(playerid,i,0xFF0000FF);

its (targetid, showid)
Reply
#3

i - what valor?
Reply
#4

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
Reply
#5

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.
Reply
#6

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
Reply
#7

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.
Reply
#8

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
Reply
#9

bump
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)