10.04.2011, 09:42
(
Последний раз редактировалось Lazy_Duck; 21.07.2011 в 09:24.
)
Solved
return 1;
if(!strcmp(cmdtext, "/Set3dtext", true)) { ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"Title","Tybe in the 3dtext You want to set","Set","Cancel"); return 1; }
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == 1) { new Text3D:labe[MAX_PLAYERS]; new string[256]; format(string,sizeof(string),"",inputtext); label[playerid] = Create3DTextLabel("%s",0x008080FF,30.0,40.0,50.0,40.0,0); Attach3DTextLabelToPlayer(labe[playerid], playerid, 0.0, 0.0, 0.7); SendClientMessage(playerid, COLOR_GREEN, "Your 3dtext has been set to %s"); return 0; } }
new Text3D:label[MAX_PLAYERS];
if(dialogid == DIALOG_Headtext)
{
new string[128], str[64];
format(string,sizeof(string),"%s",inputtext);
label[playerid] = Create3DTextLabel(string,0x008080FF,30.0,40.0,50.0,40.0,0);
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.7);
format(str,sizeof(str),"Your 3dtext has been set to %s",inputtext);
SendClientMessage(playerid, COLOR_GREEN, str);
return 1;
}
if(dialogid == DIALOG_Headtext)
{
new str[128];
label[playerid] = Create3DTextLabel(inputtext,0x008080FF,30.0,40.0,50.0,40.0,0);
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.7);
format(str,sizeof(str),"Your 3dtext has been set to %s",inputtext);
SendClientMessage(playerid, COLOR_GREEN, str);
return 1;
}
Hmmm than try this:
pawn Код:
|