29.11.2010, 19:52
pawn Код:
new 3DText:Stats3DText[MAX_PLAYERS];
OnPlayerConnect:
Stats3DText[playerid]=CreatePlayer3DTextLabel(playerid, "", Cor, -20.0, 0.0, 0.0, 30.0);
OnPlayerCommandText:
if(..., "/status")
{
new string[100]; //alterar pra quanto quer que seja o mбximo de caracteres
strins(string, cmdtext, 7, sizeof string);
if(!strlen(string)) return SendClientMessage(..."Sintaxe: /Status [Aзгo].");
UpdatePlayer3DTextLabel(playerid, Stats3DText[playerid], Cor, string);
new Float:Pos[3];
GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
Attach3DTextLabelToPlayer(playerid, Stats3DText[playerid], Pos[0], Pos[1], floatadd(Pos[2],2.0));
return 1;
}