29.09.2011, 22:10
Hi , i Create RP Server, so i want if a Normal Player connect inGame , Attach a 3D text to Him (in the top of his name) with the Text "Normal Player" (for Teste) Can you Help me?
Thanks.
Thanks.
public OnPlayerConnect(playerid)
{
if(PlayerInfo[playerid][pLevel] == 1)
{
label[playerid] = Create3DTextLabel("New Player[Lvl 1]", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.7);
}
else if(PlayerInfo[playerid][pLevel] == 2)
{
label[playerid] = Create3DTextLabel("New Player[Lvl 2]", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.7);
}