23.05.2013, 18:18
pawn Код:
new PlayerText:OpcaoSkin;
public OnPlayerConnect(playerid) {
OpcaoSkin = CreatePlayerTextDraw(playerid,40.000000, 230.000000, "Skin");
PlayerTextDrawBackgroundColor(playerid,OpcaoSkin, 255);
PlayerTextDrawFont(playerid,OpcaoSkin, 1);
PlayerTextDrawLetterSize(playerid,OpcaoSkin, 0.500000, 1.000000);
PlayerTextDrawColor(playerid,OpcaoSkin, -1);
PlayerTextDrawSetOutline(playerid,OpcaoSkin, 1);
PlayerTextDrawSetProportional(playerid,OpcaoSkin, 1);
PlayerTextDrawUseBox(playerid,OpcaoSkin, 1);
PlayerTextDrawBoxColor(playerid,OpcaoSkin, 572662472);
PlayerTextDrawTextSize(playerid,OpcaoSkin, 75.000000, 0.000000);
PlayerTextDrawSetSelectable(playerid,OpcaoSkin, 1);
return 1;
}
public OnPlayerClickTextDraw(playerid, Text:clickedid) {
if(clickedid == OpcaoSkin)
{
SendClientMessage(playerid, 0xFFFFFFAA, "Vocк clicou na opзгo Skin.");
CancelSelectTextDraw(playerid);
return true;
}
return 1;
}
pawn Код:
if(clickedid == OpcaoSkin)