14.02.2018, 16:48
PHP код:
public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid){//Login
new string[256];
if(playertextid == LoginExitTD){
if(InLogin[playerid] == 1){
Kick(playerid);
}
return 1;
}
return 1;
}
LoginExitTD = CreatePlayerTextDraw(playerid, 403.382171, 180.083251, "X");
PlayerTextDrawLetterSize(playerid, LoginExitTD, 0.326442, 1.127498);
PlayerTextDrawTextSize(playerid, LoginExitTD, -5.000000, 0.000000);
PlayerTextDrawAlignment(playerid, LoginExitTD, 1);
PlayerTextDrawColor(playerid, LoginExitTD, -1);
PlayerTextDrawSetShadow(playerid, LoginExitTD, 0);
PlayerTextDrawSetOutline(playerid, LoginExitTD, -1);
PlayerTextDrawBackgroundColor(playerid, LoginExitTD, 255);
PlayerTextDrawFont(playerid, LoginExitTD, 1);
PlayerTextDrawSetProportional(playerid, LoginExitTD, 1);
PlayerTextDrawSetSelectable(playerid, LoginExitTD, true);
PlayerTextDrawShow(playerid, LoginExitTD);
SelectTextDraw(playerid, 0xFF4040AA);