Nametag COLOR
#4

Quote:
Originally Posted by PrivatioBoni
Посмотреть сообщение
I don't know what saving system to use so can't give you exact code anyway.

When you give a player a colour, it would save into a variable, e.g.
PlayerInfo[playerid][pColor] = 1;

pColour = 1 could be red, pColour = 2 could be green etc. Save the colour on disconnect (with Y_INI or whatever you're using.) When the userfiles load the colour value would load, then depending on what colour value it is, you use this function: https://sampwiki.blast.hk/wiki/Function:SetPlayerColor.

This is a jumbled post but I hope you understand.
Nice suggestion BTW,

Is it possible to set the color through hex color codes?

EDIT: Lol i dont know what saving system i use, but here is the includes

Код:
#include <a_samp>

#include <a_zones>
#include <streamer>
#include <foreach>
#include <progress>
#include <ZCMD>
#include <YSI/y_timers.inc>
#include <yom_buttons>
#include <sscanf2>
Reply


Messages In This Thread
Nametag COLOR - by Trynda - 04.05.2014, 09:26
Re: Nametag COLOR - by PrivatioBoni - 04.05.2014, 09:33
Re: Nametag COLOR - by Galletziz - 04.05.2014, 09:33
Re: Nametag COLOR - by Trynda - 04.05.2014, 09:36

Forum Jump:


Users browsing this thread: 1 Guest(s)