28.02.2010, 01:09
pawn Код:
new Text3D:ThreeD[MAX_PLAYERS];
pawn Код:
public OnPlayerConnect(playerid)
{
ThreeD[playerid] = Create3DTextLabel("I'm a groove member", COLOR, 0.0, 0.0, 0.0, 0.0, 0, 0); // change COLOR for the real color and "i'm a..." for your text
return 1;
}
pawn Код:
public OnPlayerDisconnect(playerid)
{
Delete3DTextLabel(ThreeD[playerid])
return 1;
}
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/command", true) == 0) //
{
Attach3DTextLabelToPlayer(ThreeD[playerid], playerid, 0.0, 0.0, 1); // offset
return 1;
}
return 0;
}