Textdraw
#2

Quote:
Originally Posted by KinderClans
Посмотреть сообщение
So i made a phone textdraw to show if phone is on/off:

pawn Код:
Phone Status: ~r~%s
My question is, i wanna make it if is ON, color should be ~g~, otherwise ~r~ (as above).

How?

I use: Player[playerid][PhoneStatus] = 0/1;

Thanks.
I don't know if I'm right, but you can try something like

PHP код:
if(pInfo[playerid][PhoneStatus] = 0)
{
Phone Status: ~r~%s(pInfo[playerid][PhoneStatus]);
}
else {
Phone Status: ~G~%spInfo[playerid][PhoneStatus]);

and you can set in a stock cases to set their names (ON/OFF) instead of (1/0)
PHP код:
Case 0ON
Case 1OFF 
As I said, I haven't worked for a long time with textdraws, and I don't even know if it's a good ideea, but it's a start
Reply


Messages In This Thread
Textdraw - by KinderClans - 18.09.2018, 16:21
Re: Textdraw - by Zeus666 - 18.09.2018, 16:25
Re: Textdraw - by KinderClans - 18.09.2018, 22:58
Re: Textdraw - by solstice_ - 18.09.2018, 23:01
Re: Textdraw - by KinderClans - 18.09.2018, 23:03
Re: Textdraw - by solstice_ - 18.09.2018, 23:06
Re: Textdraw - by v1k1nG - 19.09.2018, 00:28
Re: Textdraw - by Undef1ned - 19.09.2018, 16:16
Re: Textdraw - by UFF - 19.09.2018, 16:31
Re: Textdraw - by Undef1ned - 19.09.2018, 16:33

Forum Jump:


Users browsing this thread: 1 Guest(s)