Hitman Undercover
#1

Hello Sa-Mp.Com

On /hundercover i have
PHP код:
SetPlayerColor(playeridCOLOR_WHITE); 
PHP код:
#define COLOR_WHITE 0xFFFFFFAA 
If the hitman uses /hundercover
his name color will be white and on the map he will be seen with a white square

what must i do to be invisible on map ... ?
Reply
#2

Hello New Samp User Try To Use
:

http://forum.sa-mp.com/forumdisplay.php?f=12

And Test It And Post There Full Code.
Reply
#3

Made you a simple one using ZCMD, you should not add it under any callback if you want it to work:
pawn Код:
#define COLOR_WHITE 0xFFFFFF00

CMD:hundercover(playerid, params[])
{
  SetPlayerColor(playerid, COLOR_WHITE);
  return 1;
}
Reply
#4

ShowPlayerMarkers(0); to disable it put it in OnGameModeInit
Reply
#5

Well, The define goes to the top, I guess you know that already.
pawn Код:
#define COLOR_WHITE 0xFFFFFF00
After that, Here's is the cmd you need.
pawn Код:
CMD:hundercover(playerid, params[])
{
  SetPlayerColor(playerid, COLOR_WHITE);
  return 1;
}
Don't add " / " if your using zcmd.

pawn Код:
ShowPlayerMarkers(0);
This goes under OnGameModeInit
^^ Use THAT ONLY IF YOU WANT TO DISABLE FOR ALL.
Reply
#6

Quote:
Originally Posted by Cena44
Посмотреть сообщение
Made you a simple one using ZCMD, you should not add it under any callback if you want it to work:
pawn Код:
#define COLOR_WHITE 0xFFFFFF00

CMD:hundercover(playerid, params[])
{
  SetPlayerColor(playerid, COLOR_WHITE);
  return 1;
}
Thx a lot

that's what i wanted :X
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)