markercolors on the radar
#1

is there any code to change the colors of the markers on the radar ?
Reply
#2

See: SetPlayerMapIcon
(and you're suggesting people call you if they want something scripted?)
Reply
#3

with that SetPlayerMapIcon i cant archive what i want, now i have 3 npc cars running, and i want to change the colors of their squares on the minimap, and also those from the players.
Reply
#4

SetPlayerColor
Reply
#5

SetPlayerColor(playerid, (colorid))??
and than a list with color id's or?
Reply
#6

big thanks to killer98p
https://sampforum.blast.hk/showthread.php?tid=157789
Reply
#7

use

Public Onplayerspawn
{
if(IsPlayerNPC(playerid))
{
SetPlayerColor(playerid, (colorid))
return 1;
}
return 0;
}
Reply
#8

pawn Код:
#define COLOR_RED blablabla

public OnPlayerSpawn(playerid)
{
 if(IsPlayerConnected(playerid))
 {
  SetPlayerColor(playerid, COLOR_RED);
 }
 return 1;
}
Is an example
Reply
#9

Quote:
Originally Posted by Marco_Valentine
Посмотреть сообщение
use

Public Onplayerspawn
{
if(IsPlayerNPC(playerid))
{
SetPlayerColor(playerid, (colorid))
return 1;
}
return 0;
}
That will only work when a player is a NPC.


And @Lunnatiicz: You don't need to use IsPlayerConnected on OnPlayerSpawn.
Reply
#10

Quote:
Originally Posted by alpha500delta
Посмотреть сообщение
That will only work when a player is a NPC.


And @Lunnatiicz: You don't need to use IsPlayerConnected on OnPlayerSpawn.
Only was an example, i don't see because not ispire a moment xD

Is obviously when a player "spawn" it's officialment connected to server xd
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)