16.02.2018, 06:36
Bom, sou muito lerdo para entender como q faz.. Mais como que й msm? kk.
PHP код:
#include <a_samp>
#include <zcmd>
#pragma tabsize 0
new Text:Textdraw0;
new Text:Textdraw1;
new Text:Textdraw2;
public OnPlayerConnect(playerid)
{
new veiculo = GetVehicleModel(veiculo);
Textdraw0 = TextDrawCreate(250.000000, 156.000000, "New Textdraw");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 5);
TextDrawLetterSize(Textdraw0, 0.500000, 1.000000);
TextDrawColor(Textdraw0, -1);
TextDrawSetOutline(Textdraw0, 0);
TextDrawSetProportional(Textdraw0, 1);
TextDrawSetShadow(Textdraw0, 1);
TextDrawUseBox(Textdraw0, 1);
TextDrawBoxColor(Textdraw0, 255);
TextDrawTextSize(Textdraw0, 100.000000, 121.000000);
veiculo = TextDrawSetPreviewModel(Textdraw0, 560);
TextDrawSetPreviewRot(Textdraw0, -16.000000, 0.000000, -55.000000, 1.000000);
TextDrawSetSelectable(Textdraw0, 0);
Textdraw1 = TextDrawCreate(199.000000, 198.000000, "<<");
TextDrawBackgroundColor(Textdraw1, 255);
TextDrawFont(Textdraw1, 1);
TextDrawLetterSize(Textdraw1, 0.820000, 3.000000);
TextDrawColor(Textdraw1, -1);
TextDrawSetOutline(Textdraw1, 0);
TextDrawSetProportional(Textdraw1, 1);
TextDrawSetShadow(Textdraw1, 1);
TextDrawSetSelectable(Textdraw1, 1);
Textdraw2 = TextDrawCreate(361.000000, 198.000000, ">>");
TextDrawBackgroundColor(Textdraw2, 255);
TextDrawFont(Textdraw2, 1);
TextDrawLetterSize(Textdraw2, 0.820000, 3.000000);
TextDrawColor(Textdraw2, -1);
TextDrawSetOutline(Textdraw2, 0);
TextDrawSetProportional(Textdraw2, 1);
TextDrawSetShadow(Textdraw2, 1);
TextDrawSetSelectable(Textdraw2, 1);
return 1;
}
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
if(clickedid == Textdraw1)
{
new veiculo = GetVehicleModel(veiculo);
TextDrawHideForPlayer(playerid, Textdraw0);
TextDrawShowForPlayer(playerid, Textdraw0);
TextDrawSetPreviewModel(Textdraw0, veiculo++);
return 1;
}
if(clickedid == Textdraw2)
{
new veiculo = GetVehicleModel(veiculo);
TextDrawHideForPlayer(playerid, Textdraw0);
TextDrawShowForPlayer(playerid, Textdraw0);
TextDrawSetPreviewModel(Textdraw0, veiculo++);
return 1;
}
return 1;
}
CMD:carros(playerid, params[])
{
TextDrawShowForPlayer(playerid, Textdraw0);
TextDrawShowForPlayer(playerid, Textdraw1);
TextDrawShowForPlayer(playerid, Textdraw2);
SelectTextDraw(playerid, 0x000000FF);
return 1;
}