20.01.2011, 15:27
Fiz pra vocк, isto deve resolver o seu problema:
Espero ter ajudado
pawn Код:
if(strcmp(cmd, "/skin", true) == 0)
{
new foco[50];
foco = strtok(cmdtext, idx);
if(!strlen(foco)) return SendClientMessage(playerid, 0xFFFFFFAA, "Digite: /skin [ id ]");
SetPlayerSkin(playerid,strval(foco));
return 1;
}
if(strcmp(cmd, "/pintar", true) == 0)
{
new foco[50], x, y[50], z[150];
foco = strtok(cmdtext, idx);
if(!strlen(foco)) return SendClientMessage(playerid, 0xFFFFFFAA, "Digite: /pintar [ id do TextDraw ] [ COR+TEXTO (Exemplo: ~r~Oi, sou um TextDraw) ]");
x = strval(foco);
foco = strtok(cmdtext, idx);
if(!strlen(foco)) return SendClientMessage(playerid, 0xFFFFFFAA, "Digite: /pintar [ id do TextDraw ] [ COR+TEXTO (Exemplo: ~r~Oi, sou um TextDraw) ]");
format(y, sizeof(y), foco);
TextDrawHideForPlayer(playerid, x);
TextDrawSetString(x, y);
TextDrawShowForPlayer(playerid, x);
return 1;
}
Espero ter ajudado