SA-MP Forums Archive
3DText - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: 3DText (/showthread.php?tid=389012)



3DText - teomakedonija - 31.10.2012

Hi.I use Sandra Property System.And now.That script when go to pickup show you GameTextForPlayer.I want to create this from GameTextForPlayer to Create3DTextLabel how to create that ? Please help me ! I want to my property show like this .. http://i.imgur.com/JPZDs.jpg Help ! Pickups is this

pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
    new propid = -1;
    for(new id; id<MAX_PROPERTIES; id++)
    {
        if(PropInfo[id][PickupNr] == pickupid)
        {
            propid = id;
            break;
        }
    }
    if(propid != -1)
    {
        new str[128];
        format(str, 128, "~y~\"%s\"~n~~r~Cena: ~y~$%d~n~~r~Zarabotka: ~y~$%d~n~~r~Gazda: ~y~%s", PropInfo[propid][PropName], PropInfo[propid][PropValue], PropInfo[propid][PropEarning], PropInfo[propid][PropOwner]);
        Create3DTextLabel(playerid, str, 2000, 3);
    }
    return 1;
}



Re: 3DText - teomakedonija - 31.10.2012

Bump Please Give you Rep ++


AW: 3DText - Skimmer - 31.10.2012

Like this ?

pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
    new propid = -1;
    for(new id; id<MAX_PROPERTIES; id++)
    {
        if(PropInfo[id][PickupNr] == pickupid)
        {
            propid = id;
            break;
        }
    }
    if(propid != -1)
    {
        new str[128];
        format(str, 128, "~y~\"%s\"~n~~r~Cena: ~y~$%d~n~~r~Zarabotka: ~y~$%d~n~~r~Gazda: ~y~%s", PropInfo[propid][PropName], PropInfo[propid][PropValue], PropInfo[propid][PropEarning], PropInfo[propid][PropOwner]);
        Create3DTextLabel(playerid, str, 2000, 3);
        GameTextForPlayer(playerid, "your text", 3000, 3); // This is new
    }
    return 1;
}



Re: 3DText - teomakedonija - 31.10.2012

Thanks for this.But i need a when connect player to show 3Dtext dont in Pickup !


AW: 3DText - Skimmer - 31.10.2012

Can you show me your CreatePickup() functions under OnGameModeInit.
It's enough, when you post 10 pickups.