[Problem]3dlabelText
#4

Quote:
Originally Posted by clarencecuzz
Посмотреть сообщение
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    //Obviously your variables for 'car' etc. will be here, as well as previous State Changes.
    if(newstate == PLAYER_STATE_PASSENGER || newstate == PLAYER_STATE_DRIVER)
    {
         Update3DTextLabelText(VehicleInfo[car][labelID], COLOR_BRIGHTRED, "lala");
    }
    if(newstate == PLAYER_STATE_ONFOOT)
    {
        if(oldstate == PLAYER_STATE_DRIVER || oldstate == PLAYER_STATE_PASSENGER)
        {
            if(VehicleInfo[car][Buyable] == 0)
            {
                if(strcmp(VehicleInfo[car][CarOwner], "none", true) == 0)
                {
                    Update3DTextLabelText(VehicleInfo[car][labelID], COLOR_BRIGHTRED, "Public");
                }
                else if(strcmp(VehicleInfo[car][CarOwner], "none", true))
                {
                    Update3DTextLabelText(VehicleInfo[car][labelID], COLOR_ORANGE, VehicleInfo[car][CarOwner]);
                }
            }
            else
            {
                Update3DTextLabelText(VehicleInfo[car][labelID], COLOR_LIGHTGREEN, "Buy");
            }
        }  
    }
    return 1;
}
NOTE: Untested
Thanks, I will check it soon and I will update the thread.
Reply


Messages In This Thread
[Problem]3dlabelText - by ronen4kill - 16.09.2012, 14:16
Re: [Problem]3dlabelText - by ronen4kill - 16.09.2012, 20:46
Re: [Problem]3dlabelText - by clarencecuzz - 17.09.2012, 06:29
Re: [Problem]3dlabelText - by ronen4kill - 17.09.2012, 11:02

Forum Jump:


Users browsing this thread: 2 Guest(s)